Bug 2215 fixed
- created an attribute on the Alarm class, extra_labels
- create a method on common_db to include new extra_labels
- changed the _get_metric_value_from_response method of Prometheus Evaluator to return both the metric value and labels
Change-Id: I22e0fd8e95de28560e3a3216622c43c8861137ef
Signed-off-by: Daniel Gomes <dagomes@av.it.pt>
diff --git a/osm_mon/evaluator/backends/base.py b/osm_mon/evaluator/backends/base.py
index 5ef1598..30793c1 100644
--- a/osm_mon/evaluator/backends/base.py
+++ b/osm_mon/evaluator/backends/base.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
# Copyright 2018 Whitestack, LLC
# *************************************************************
@@ -15,7 +17,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-
# For those usages not covered by the Apache License, Version 2.0 please
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
@@ -27,5 +28,5 @@
def __init__(self, config: Config):
pass
- def get_metric_value(self, metric_name: str, tags: dict):
+ def get_metric_data(self, metric_name: str, tags: dict):
pass