]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
monitoring: fix decimal precision in Grafana % 34682/head
authorErnesto Puerta <epuertat@redhat.com>
Wed, 22 Apr 2020 11:39:16 +0000 (13:39 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Wed, 22 Apr 2020 11:39:16 +0000 (13:39 +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>
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 f7e90da7e28d83a7b5042f13597cfe7a50c8f180..41554ed30683e210379dd978515084eec310eb53 100644 (file)
@@ -50,6 +50,7 @@
         "#d44a3a"
       ],
       "datasource": "$datasource",
+      "decimals": 2,
       "format": "percentunit",
       "gauge": {
         "maxValue": 1,