]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Prometheus query error in the metrics of Pools, OSDs and RBD images 35884/head
authorAvan Thakkar <athakkar@redhat.com>
Mon, 13 Apr 2020 09:50:00 +0000 (15:20 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Thu, 2 Jul 2020 03:52:25 +0000 (09:22 +0530)
Fixes: https://tracker.ceph.com/issues/45068
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit 47b515c09496da8fc326300bab6618250466effe)

monitoring/grafana/dashboards/osds-overview.json
monitoring/grafana/dashboards/rbd-overview.json

index 869fdc2fa5ebbdd69dd43b9eab7e7e8589a08628..4b91df9ebce544456901a5f210e637d27db4adc9 100644 (file)
       "strokeWidth": 1,
       "targets": [
         {
-          "expr": "count by(device_class) (ceph_osd_metadata)",
+          "expr": "count by (device_class) (ceph_osd_metadata)",
           "format": "time_series",
           "intervalFactor": 1,
           "legendFormat": "{{device_class}}",
index f3df003ec49ec62f696df7f0585eec2432a7716c..eb15fbcb8ef4a5ed6fa876b606c345c7f5d2b4f1 100644 (file)
       ],
       "targets": [
         {
-          "expr": "topk(10, (sort((irate(ceph_rbd_write_ops[30s]) + on(image, pool, namespace) irate(ceph_rbd_read_ops[30s])))))",
+          "expr": "topk(10, (sort((irate(ceph_rbd_write_ops[30s]) + on (image, pool, namespace) irate(ceph_rbd_read_ops[30s])))))",
           "format": "table",
           "instant": true,
           "intervalFactor": 1,