From dee71f698fcc858493eb3885b6f33f91ed7945c7 Mon Sep 17 00:00:00 2001 From: Mia Altieri Date: Mon, 29 Jan 2024 16:58:21 +0000 Subject: [PATCH] fix dashboard --- src/grafana_dashboards/MongoDB_ReplSet_Summary.json | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/grafana_dashboards/MongoDB_ReplSet_Summary.json b/src/grafana_dashboards/MongoDB_ReplSet_Summary.json index 60294dd55..65977b16a 100644 --- a/src/grafana_dashboards/MongoDB_ReplSet_Summary.json +++ b/src/grafana_dashboards/MongoDB_ReplSet_Summary.json @@ -122,7 +122,7 @@ "type": "datasource", "uid": "${prometheusds}" }, - "expr": "count by(set) (group by(service_name, set) (mongodb_mongod_replset_number_of_members{cluster=~\"$cluster\",juju_application=\"$juju_application\",juju_model=\"$juju_model\",juju_model_uuid=\"$juju_model_uuid\",juju_unit=\"$juju_unit\",set=~\"$replset\"} or mongodb_mongod_replset_my_state{cluster=~\"$cluster\",juju_application=\"$juju_application\",juju_model=\"$juju_model\",juju_model_uuid=\"$juju_model_uuid\",juju_unit=\"$juju_unit\",set=~\"$replset\"}))", + "expr": "mongodb_mongod_replset_number_of_members{juju_application=~\"$juju_application\",juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_unit=~\"$juju_unit\"} ", "interval": "5m", "intervalFactor": 1, "legendFormat": "", @@ -3130,22 +3130,19 @@ ] }, "time": { - "from": "2023-03-27T08:51:52.293Z", - "to": "2023-04-12T08:51:52.293Z" + "from": "now-12h", + "to": "now" }, "timepicker": { "hidden": false, "now": true, "refresh_intervals": [ + "1s", "5s", - "10s", - "30s", "1m", "5m", - "15m", - "30m", "1h", - "2h", + "6h", "1d" ], "time_options": [