From: aguilard Date: Tue, 23 May 2023 08:10:38 +0000 (+0000) Subject: Update multivim_vim_status.py to append osm to metric_name to be BWC X-Git-Tag: release-v14.0-start~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F13434%2F1;p=osm%2FNG-SA.git Update multivim_vim_status.py to append osm to metric_name to be BWC Change-Id: I7fabc02fd8733b900ebf0283649a061e99ed7463 Signed-off-by: aguilard --- diff --git a/src/osm_ngsa/dags/multivim_vim_status.py b/src/osm_ngsa/dags/multivim_vim_status.py index f63ab4f..5307879 100644 --- a/src/osm_ngsa/dags/multivim_vim_status.py +++ b/src/osm_ngsa/dags/multivim_vim_status.py @@ -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, )