X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=blobdiff_plain;f=robot-systest%2Fresources%2Fsa_08-vnf_with_vnf_indicators_snmp_data.py;h=d9e6d1efa84b1f40da107affb46705d76e6c132b;hp=449b61ea708d4d6cb222356bff3a2dc81fac0d00;hb=a5704d6a060b5329e10488a351c50495be69d680;hpb=02454daa68b47818fc9fc7d479b8ef85b51c1603 diff --git a/robot-systest/resources/sa_08-vnf_with_vnf_indicators_snmp_data.py b/robot-systest/resources/sa_08-vnf_with_vnf_indicators_snmp_data.py index 449b61e..d9e6d1e 100644 --- a/robot-systest/resources/sa_08-vnf_with_vnf_indicators_snmp_data.py +++ b/robot-systest/resources/sa_08-vnf_with_vnf_indicators_snmp_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 metrics to retrieve metric_1_name = 'ifInOctets'