From 9bea7378e9011b0f8835e97fd1a617da9dae3680 Mon Sep 17 00:00:00 2001 From: aguilard Date: Tue, 23 May 2023 08:10:38 +0000 Subject: [PATCH] Update multivim_vim_status.py to append osm to metric_name to be BWC Change-Id: I7fabc02fd8733b900ebf0283649a061e99ed7463 Signed-off-by: aguilard --- src/osm_ngsa/dags/multivim_vim_status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ) -- 2.25.1