]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
monitoring: fix decimal precision in Grafana % 34828/head
authorErnesto Puerta <epuertat@redhat.com>
Wed, 22 Apr 2020 11:39:16 +0000 (13:39 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Wed, 29 Apr 2020 11:50:06 +0000 (13:50 +0200)
Set decimal precision to 2 positions for charts using percentunits.

Fixes: https://tracker.ceph.com/issues/45183
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 3fd804f10b2335ebcee6b885e2f870e86ba14388)

monitoring/grafana/dashboards/ceph-cluster.json
monitoring/grafana/dashboards/hosts-overview.json
monitoring/grafana/dashboards/pool-detail.json

index 549bb1ea2f42855fa0a4fc84d1e9e63bb92cdd09..447dbb29322e599664eac167ea6510bf719d0e53 100644 (file)
         "#d44a3a"
       ],
       "datasource": "$datasource",
+      "decimals": 2,
       "format": "percentunit",
       "gauge": {
         "maxValue": 100,
index 7b5af33f72ef9fa3b1fdf9c19ad95d3d6a5cc6cc..d9f1fb29dbb90aff1647b35ab7ba26ae5ecc8362 100644 (file)
       "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,
       "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,
index 14e468a5274edf2a8cc873cbd7797b26d5eb63a4..8b3ec9626174427c42e844dde5d0b26c9c993e73 100644 (file)
@@ -50,6 +50,7 @@
         "#d44a3a"
       ],
       "datasource": "$datasource",
+      "decimals": 2,
       "format": "percentunit",
       "gauge": {
         "maxValue": 1,