From 3fd804f10b2335ebcee6b885e2f870e86ba14388 Mon Sep 17 00:00:00 2001 From: Ernesto Puerta Date: Wed, 22 Apr 2020 13:39:16 +0200 Subject: [PATCH] monitoring: fix decimal precision in Grafana % Set decimal precision to 2 positions for charts using percentunits. Fixes: https://tracker.ceph.com/issues/45183 Signed-off-by: Ernesto Puerta --- monitoring/grafana/dashboards/ceph-cluster.json | 1 + monitoring/grafana/dashboards/hosts-overview.json | 2 ++ monitoring/grafana/dashboards/pool-detail.json | 1 + 3 files changed, 4 insertions(+) diff --git a/monitoring/grafana/dashboards/ceph-cluster.json b/monitoring/grafana/dashboards/ceph-cluster.json index 549bb1ea2f428..447dbb29322e5 100644 --- a/monitoring/grafana/dashboards/ceph-cluster.json +++ b/monitoring/grafana/dashboards/ceph-cluster.json @@ -260,6 +260,7 @@ "#d44a3a" ], "datasource": "$datasource", + "decimals": 2, "format": "percentunit", "gauge": { "maxValue": 100, diff --git a/monitoring/grafana/dashboards/hosts-overview.json b/monitoring/grafana/dashboards/hosts-overview.json index 7b5af33f72ef9..d9f1fb29dbb90 100644 --- a/monitoring/grafana/dashboards/hosts-overview.json +++ b/monitoring/grafana/dashboards/hosts-overview.json @@ -133,6 +133,7 @@ "datasource": "$datasource", "decimals": 0, "description": "Average CPU busy across all hosts (OSD, RGW, MON etc) within the cluster", + "decimals": 2, "format": "percentunit", "gauge": { "maxValue": 100, @@ -216,6 +217,7 @@ "datasource": "$datasource", "decimals": 0, "description": "Average Memory Usage across all hosts in the cluster (excludes buffer/cache usage)", + "decimals": 2, "format": "percentunit", "gauge": { "maxValue": 100, diff --git a/monitoring/grafana/dashboards/pool-detail.json b/monitoring/grafana/dashboards/pool-detail.json index f7e90da7e28d8..41554ed30683e 100644 --- a/monitoring/grafana/dashboards/pool-detail.json +++ b/monitoring/grafana/dashboards/pool-detail.json @@ -50,6 +50,7 @@ "#d44a3a" ], "datasource": "$datasource", + "decimals": 2, "format": "percentunit", "gauge": { "maxValue": 1, -- 2.39.5