]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
dashboard: Use exported_instance to identify OSDs
authorKristoffer Grönlund <kgronlund@suse.com>
Thu, 26 Mar 2020 18:12:55 +0000 (19:12 +0100)
committerNathan Cutler <ncutler@suse.com>
Mon, 6 Apr 2020 11:53:46 +0000 (13:53 +0200)
When moving to LVM-based ceph-volume setups, several
grafana dashboards stopped working. The problem is that
(device, instance) no longer results in unique labels
which causes errors like:

"many-to-many matching not allowed: matching labels must be unique on one side"

Fixes: https://tracker.ceph.com/issues/44784
Signed-off-by: Kristoffer Grönlund <kgronlund@suse.com>
(cherry picked from commit 8b61b8d3d781b9d762098cf45b41b596a32509ab)

monitoring/grafana/dashboards/hosts-overview.json

index ed6c4c15bf2b9106b7f15d72b9b2e13dc133d77a..0ad122f831a48dc36b49a74811d30443195f302f 100644 (file)
         "multi": false,
         "name": "osd_hosts",
         "options": [],
-        "query": "label_values(ceph_disk_occupation, instance)",
+        "query": "label_values(ceph_disk_occupation, exported_instance)",
         "refresh": 1,
         "regex": "([^.]*).*",
         "skipUrlSync": false,