From 438900f171228674df99a8f55b0946817d84127c Mon Sep 17 00:00:00 2001 From: Enno Gotthold Date: Tue, 28 Apr 2020 13:34:16 +0200 Subject: [PATCH] mgr/dashboard: Remove additional unneeded steps for the metrics calculation Signed-off-by: Enno Gotthold (cherry picked from commit dfb1e0020ed8130a2276be1ca94d8e7d7f931273) --- monitoring/grafana/dashboards/rbd-details.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring/grafana/dashboards/rbd-details.json b/monitoring/grafana/dashboards/rbd-details.json index 4180795ea0853..c822e7dffe1cb 100644 --- a/monitoring/grafana/dashboards/rbd-details.json +++ b/monitoring/grafana/dashboards/rbd-details.json @@ -256,14 +256,14 @@ "steppedLine": false, "targets": [ { - "expr": "round(sum(irate(ceph_rbd_write_latency_sum{pool=\"$Pool\", image=\"$Image\"}[30s])) / sum(irate(ceph_rbd_write_latency_count{pool=\"$Pool\", image=\"$Image\"}[30s])))", + "expr": "irate(ceph_rbd_write_latency_sum{pool=\"$Pool\", image=\"$Image\"}[30s]) / irate(ceph_rbd_write_latency_count{pool=\"$Pool\", image=\"$Image\"}[30s])", "format": "time_series", "intervalFactor": 1, "legendFormat": "Write Latency Sum", "refId": "A" }, { - "expr": "round(sum(irate(ceph_rbd_read_latency_sum{pool=\"$Pool\", image=\"$Image\"}[30s])) / sum(irate(ceph_rbd_read_latency_count{pool=\"$Pool\", image=\"$Image\"}[30s])))", + "expr": "irate(ceph_rbd_read_latency_sum{pool=\"$Pool\", image=\"$Image\"}[30s]) / irate(ceph_rbd_read_latency_count{pool=\"$Pool\", image=\"$Image\"}[30s])", "format": "time_series", "intervalFactor": 1, "legendFormat": "Read Latency Sum", -- 2.39.5