From 28df703c41584641515e373638278d5fded91624 Mon Sep 17 00:00:00 2001 From: Ankush Behl Date: Wed, 4 Apr 2018 21:13:02 +0530 Subject: [PATCH] Brick status value mapping change tendrl-bug-id: Tendrl/monitoring-integration#365 --- .../grafana/dashboards/tendrl-gluster-bricks.json | 4 ++-- tendrl/monitoring_integration/graphite/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/tendrl/monitoring-integration/grafana/dashboards/tendrl-gluster-bricks.json b/etc/tendrl/monitoring-integration/grafana/dashboards/tendrl-gluster-bricks.json index a5268a0..abbeb39 100644 --- a/etc/tendrl/monitoring-integration/grafana/dashboards/tendrl-gluster-bricks.json +++ b/etc/tendrl/monitoring-integration/grafana/dashboards/tendrl-gluster-bricks.json @@ -89,11 +89,11 @@ }, { "op": "=", "text": "Started", - "value": "1" + "value": "0" }, { "op": "=", "text": "Stopped", - "value": "10" + "value": "8" }], "valueName": "current" }, { diff --git a/tendrl/monitoring_integration/graphite/__init__.py b/tendrl/monitoring_integration/graphite/__init__.py index b2f6854..8e34d4b 100644 --- a/tendrl/monitoring_integration/graphite/__init__.py +++ b/tendrl/monitoring_integration/graphite/__init__.py @@ -564,7 +564,7 @@ def set_volume_count(self, cluster_data, resource_name): return cluster_data def resource_status_mapper(self, status): - status_map = {"started": 1, + status_map = {"started": 0, "up": 0, "(degraded)": 3, "degraded": 3, @@ -572,7 +572,7 @@ def resource_status_mapper(self, status): "partial": 4, "unknown": 5, "failed": 7, - "down": 8, + "down": 10, "created": 9, "stopped": 10, "completed": 12,