Skip to content

Commit 1622ad8

Browse files
author
Aashish Sharma
committed
mgr/dashboard: fix cluster filter typo in multi-cluster-overview
grafana dashboard Fixes: https://tracker.ceph.com/issues/65760 Signed-off-by: Aashish Sharma <[email protected]>
1 parent fce7c52 commit 1622ad8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

monitoring/ceph-mixin/dashboards/multi-cluster.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ local g = import 'grafonnet/grafana.libsonnet';
806806
},
807807
]).addTargets([
808808
$.addTargetSchema(
809-
expr='ALERTS{alertstate="firing", %(matchers)s}}' % $.matchers(),
809+
expr='ALERTS{alertstate="firing", %(matchers)s}' % $.matchers(),
810810
datasource={ type: 'prometheus', uid: '$datasource' },
811811
format='table',
812812
hide=false,
@@ -955,7 +955,7 @@ local g = import 'grafonnet/grafana.libsonnet';
955955
.addTargets(
956956
[
957957
$.addTargetSchema(
958-
expr='topk(10, ceph_pool_bytes_used{%(matchers)s}}/ceph_pool_max_avail{%(matchers)s}} * on(pool_id, cluster) group_left(instance, name) ceph_pool_metadata{%(matchers)s}})' % $.matchers(),
958+
expr='topk(10, ceph_pool_bytes_used{%(matchers)s}/ceph_pool_max_avail{%(matchers)s} * on(pool_id, cluster) group_left(instance, name) ceph_pool_metadata{%(matchers)s})' % $.matchers(),
959959
datasource='$datasource',
960960
instant=false,
961961
legendFormat='{{cluster}} - {{name}}',

monitoring/ceph-mixin/dashboards_out/multi-cluster-overview.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@
16451645
"uid": "$datasource"
16461646
},
16471647
"exemplar": false,
1648-
"expr": "ALERTS{alertstate=\"firing\", cluster=~\"$cluster\", }}",
1648+
"expr": "ALERTS{alertstate=\"firing\", cluster=~\"$cluster\", }",
16491649
"format": "table",
16501650
"hide": false,
16511651
"instant": true,
@@ -2016,7 +2016,7 @@
20162016
"targets": [
20172017
{
20182018
"datasource": "$datasource",
2019-
"expr": "topk(10, ceph_pool_bytes_used{cluster=~\"$cluster\", }}/ceph_pool_max_avail{cluster=~\"$cluster\", }} * on(pool_id, cluster) group_left(instance, name) ceph_pool_metadata{cluster=~\"$cluster\", }})",
2019+
"expr": "topk(10, ceph_pool_bytes_used{cluster=~\"$cluster\", }/ceph_pool_max_avail{cluster=~\"$cluster\", } * on(pool_id, cluster) group_left(instance, name) ceph_pool_metadata{cluster=~\"$cluster\", })",
20202020
"format": "time_series",
20212021
"instant": false,
20222022
"intervalFactor": 1,

0 commit comments

Comments
 (0)