X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Fresources%2Fsa_01-vnf_with_vim_metrics_data.py;h=d6829656c217f38c3e3f0e34730783cf0482fc4e;hb=a5704d6a060b5329e10488a351c50495be69d680;hp=af1779f0c4574a86a9a3e100944be81dbdb47e5d;hpb=cd8cfe92d331fc936b2079915cb31f25d5a054f8;p=osm%2Ftests.git diff --git a/robot-systest/resources/sa_01-vnf_with_vim_metrics_data.py b/robot-systest/resources/sa_01-vnf_with_vim_metrics_data.py index af1779f..d682965 100644 --- a/robot-systest/resources/sa_01-vnf_with_vim_metrics_data.py +++ b/robot-systest/resources/sa_01-vnf_with_vim_metrics_data.py @@ -11,15 +11,12 @@ # limitations under the License. from pathlib import Path -import os + +from common_helpers import get_prometheus_info + # Prometheus host and port -if os.environ.get('PROMETHEUS_HOSTNAME', False): - prometheus_host = os.environ.get('PROMETHEUS_HOSTNAME') - prometheus_port = '9090' -else: - prometheus_host = os.environ.get('OSM_HOSTNAME') - prometheus_port = '9091' +(prometheus_host, prometheus_port) = get_prometheus_info() # Prometheus polling interval and retries prometheus_poll_retries = '15 times'