From 5798d2fc9a50881e8ec7c9c2343f9796eadf7533 Mon Sep 17 00:00:00 2001 From: Aashish Sharma Date: Wed, 14 May 2025 13:35:10 +0530 Subject: [PATCH] mgr/dashboard: fix flaky promql query test There is a test collision in "promql-query-test" test suite because two different IOPS panels with the same title and legend labels (Read, Write) are present, and the test framework is not able to distinguish between them. There are two panels with the same title IOPS and legends Read / Write, but different expressions:\ 1. ceph-application-overview.json 2. ceph-cluster-advanced.json Fixes: https://tracker.ceph.com/issues/71318 Signed-off-by: Aashish Sharma --- .../dashboards_out/ceph-application-overview.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/monitoring/ceph-mixin/dashboards_out/ceph-application-overview.json b/monitoring/ceph-mixin/dashboards_out/ceph-application-overview.json index b49a666816593..eb4ba8029ab24 100644 --- a/monitoring/ceph-mixin/dashboards_out/ceph-application-overview.json +++ b/monitoring/ceph-mixin/dashboards_out/ceph-application-overview.json @@ -38,7 +38,7 @@ }, "id": 11, "panels": [], - "title": "Application ($application)", + "title": "Application (${application:csv})", "type": "row" }, { @@ -162,7 +162,7 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "Sum(rate(ceph_pool_wr{cluster=~\"$cluster\",}[$__rate_interval]) *\n on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"$cluster\",name=~\"$pool\"})", + "expr": "sum(rate(ceph_pool_wr{cluster=~\"$cluster\",}[$__rate_interval]) *\n on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"$cluster\",name=~\"$pool\"})", "legendFormat": "Write", "range": true, "refId": "A" @@ -173,14 +173,14 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "Sum(rate(ceph_pool_rd{cluster=~\"$cluster\",}[$__rate_interval]) *\n on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"$cluster\",name=~\"$pool\"})", + "expr": "sum(rate(ceph_pool_rd{cluster=~\"$cluster\",}[$__rate_interval]) *\n on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"$cluster\",name=~\"$pool\"})", "hide": false, "legendFormat": "Read", "range": true, "refId": "B" } ], - "title": "IOPS", + "title": "IOPS (${application:csv} - $pool)", "type": "stat" }, { @@ -361,7 +361,7 @@ "refId": "B" } ], - "title": "Throughput", + "title": "Throughput (${application:csv} - $pool)", "type": "stat" }, { -- 2.39.5