From 546c2830767c1d03b17601d8b815ae4cfd08837a Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Tue, 18 Sep 2018 23:31:14 +0200 Subject: [PATCH] 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 --- dashboards/mgr-prometheus/ceph-cluster.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.47.3