From: Aashish Sharma Date: Wed, 14 May 2025 08:05:10 +0000 (+0530) Subject: mgr/dashboard: fix flaky promql query test X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5798d2fc9a50881e8ec7c9c2343f9796eadf7533;p=ceph.git 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 --- 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" }, {