]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix Grafana Ceph Cluster health status widget
authorPatrick Seidensal <pseidensal@suse.com>
Mon, 14 Jun 2021 16:13:54 +0000 (18:13 +0200)
committerPatrick Seidensal <pseidensal@suse.com>
Wed, 16 Jun 2021 07:10:32 +0000 (09:10 +0200)
The health status widget doesn't show any status because it requires its
query to return a single result. But in case a mgr instance had failed,
it would return more, provided the incident has happened in the
requested time frame.

This is simply an issue of the `instant` switch being disabled for that
widget. As only one mgr instance can ever be providing data at a time,
enabling `instant` completely solves that issue.

Fixes: https://tracker.ceph.com/issues/51212
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
monitoring/grafana/dashboards/ceph-cluster.json

index a08dc26f34f0d031ee4958f7d7888ea8123523cd..5603b064af680d2f08ddb4f36dd1786a7896cb99 100644 (file)
         {
           "expr": "ceph_health_status{instance=~'$instance'}",
           "format": "time_series",
+          "instant": true,
           "interval": "$interval",
           "intervalFactor": 1,
           "refId": "A",