projects
/
osm
/
NG-SA.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5184a3d
)
Fix bug 2297: VIM status metric not working properly
79/13979/3
author
aguilard
<e.dah.tid@telefonica.com>
Wed, 25 Oct 2023 11:51:30 +0000
(11:51 +0000)
committer
aguilard
<e.dah.tid@telefonica.com>
Fri, 3 Nov 2023 07:40:21 +0000
(07:40 +0000)
Change-Id: If6442ef23f017079e6be8430c79bc58da449dd11
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
src/osm_ngsa/dags/multivim_vim_status.py
patch
|
blob
|
history
diff --git
a/src/osm_ngsa/dags/multivim_vim_status.py
b/src/osm_ngsa/dags/multivim_vim_status.py
index
5307879
..
e830ff1
100644
(file)
--- a/
src/osm_ngsa/dags/multivim_vim_status.py
+++ b/
src/osm_ngsa/dags/multivim_vim_status.py
@@
-122,7
+122,8
@@
def create_dag(dag_id, dag_number, dag_description, vim_id):
if collector:
status = collector.is_vim_ok()
logger.info(f"VIM status: {status}")
- metric.labels(vim_id).set(1)
+ if status:
+ metric.labels(vim_id).set(1)
else:
logger.info("Error creating VIM collector")
# Push to Prometheus