projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Resolved 1698 - MON fails to collect metrics from an OpenStack VIM with metrics suppo...
[osm/MON.git]
/
osm_mon
/
collector
/
vnf_metric.py
diff --git
a/osm_mon/collector/vnf_metric.py
b/osm_mon/collector/vnf_metric.py
index
d0f39c3
..
49e7842
100644
(file)
--- a/
osm_mon/collector/vnf_metric.py
+++ b/
osm_mon/collector/vnf_metric.py
@@
-20,13
+20,19
@@
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
from osm_mon.collector.metric import Metric
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
from osm_mon.collector.metric import Metric
+import logging
+
+log = logging.getLogger(__name__)
class VnfMetric(Metric):
class VnfMetric(Metric):
- def __init__(self, nsr_id, vnf_member_index, vdur_name, name, value):
+ def __init__(self, nsr_id, vnf_member_index, vdur_name, name, value
, extra_tags: dict = None
):
tags = {
'ns_id': nsr_id,
'vnf_member_index': vnf_member_index,
'vdu_name': vdur_name
}
tags = {
'ns_id': nsr_id,
'vnf_member_index': vnf_member_index,
'vdu_name': vdur_name
}
+ if extra_tags:
+ tags.update(extra_tags)
+ log.debug('Tags: %s', tags)
super().__init__(tags, name, value)
super().__init__(tags, name, value)