From: Boris Ranto Date: Tue, 18 Sep 2018 21:31:14 +0000 (+0200) Subject: dashboards: Fix cluster OSDs panel X-Git-Tag: v2.0.1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=546c2830767c1d03b17601d8b815ae4cfd08837a;p=cephmetrics.git dashboards: Fix cluster OSDs panel 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 --- diff --git a/dashboards/mgr-prometheus/ceph-cluster.json b/dashboards/mgr-prometheus/ceph-cluster.json index b84c75c..00139c6 100644 --- a/dashboards/mgr-prometheus/ceph-cluster.json +++ b/dashboards/mgr-prometheus/ceph-cluster.json @@ -593,7 +593,7 @@ "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,