]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
dashboards: Fix cluster OSDs panel 225/head
authorBoris Ranto <branto@redhat.com>
Tue, 18 Sep 2018 21:31:14 +0000 (23:31 +0200)
committerBoris Ranto <branto@redhat.com>
Tue, 18 Sep 2018 21:34:26 +0000 (23:34 +0200)
We still use the old 'id' label for getting the number of OSDs in the
ceph cluster dashboard. However, the label was superseded by the
'ceph_daemon' label in one of the updates to the prometheus exporter in
ceph-mgr. This patch changes the query to what we use in other
dashboards -- i.e. 'ceph_daemon' instead of 'id'.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1627725
Signed-off-by: Boris Ranto <branto@redhat.com>
dashboards/mgr-prometheus/ceph-cluster.json

index b84c75c24b13f9f06881e4fb39bd6c349ffb0638..00139c62811e12e4c345b93d95d23a5edc315ef0 100644 (file)
       "tableColumn": "",
       "targets": [
         {
-          "expr": "count(max by (id) (ceph_osd_metadata))",
+          "expr": "count(max by (ceph_daemon) (ceph_osd_metadata))",
           "format": "time_series",
           "groupBy": [],
           "intervalFactor": 2,