Update multivim_vim_status.py to append osm to metric_name to be BWC 34/13434/1
authoraguilard <e.dah.tid@telefonica.com>
Tue, 23 May 2023 08:10:38 +0000 (08:10 +0000)
committeraguilard <e.dah.tid@telefonica.com>
Tue, 23 May 2023 08:10:38 +0000 (08:10 +0000)
Change-Id: I7fabc02fd8733b900ebf0283649a061e99ed7463
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
src/osm_ngsa/dags/multivim_vim_status.py

index f63ab4f..5307879 100644 (file)
@@ -30,7 +30,7 @@ from prometheus_client import CollectorRegistry, Gauge, push_to_gateway
 SUPPORTED_VIM_TYPES = ["openstack", "vio", "gcp", "azure"]
 PROMETHEUS_PUSHGW = "pushgateway-prometheus-pushgateway:9091"
 PROMETHEUS_JOB_PREFIX = "airflow_osm_vim_status_"
-PROMETHEUS_METRIC = "vim_status"
+PROMETHEUS_METRIC = "osm_vim_status"
 PROMETHEUS_METRIC_DESCRIPTION = "VIM status"
 SCHEDULE_INTERVAL = 1
 
@@ -111,7 +111,7 @@ def create_dag(dag_id, dag_number, dag_description, vim_id):
                 PROMETHEUS_METRIC,
                 PROMETHEUS_METRIC_DESCRIPTION,
                 labelnames=[
-                    "vim_id",
+                    "vim_account_id",
                 ],
                 registry=registry,
             )