From b33c15091546e6ff39bcd75f97ce05838c984c5e Mon Sep 17 00:00:00 2001 From: Jeffrey Vervoort Date: Tue, 29 Oct 2024 08:16:17 +0100 Subject: [PATCH] Change variables which are list of values to a single value. As in 99% of the time we won't look at the others. --- grafana/dashboards/database-performance.json | 31 ++++++++------------ grafana/dashboards/grpc-server.json | 30 ++++++++----------- 2 files changed, 26 insertions(+), 35 deletions(-) diff --git a/grafana/dashboards/database-performance.json b/grafana/dashboards/database-performance.json index 24fb3ebc..6898cfdd 100755 --- a/grafana/dashboards/database-performance.json +++ b/grafana/dashboards/database-performance.json @@ -1647,38 +1647,33 @@ }, { "current": { - "selected": false, + "selected": true, "text": "prometheus-postgres-exporter:9187", "value": "prometheus-postgres-exporter:9187" }, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "definition": "label_values(instance)", "hide": 0, "includeAll": false, "label": "Instance", "multi": false, "name": "INSTANCE", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(instance)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", + "options": [ + { + "selected": true, + "text": "prometheus-postgres-exporter:9187", + "value": "prometheus-postgres-exporter:9187" + } + ], + "query": "prometheus-postgres-exporter:9187", + "queryValue": "", "skipUrlSync": false, - "sort": 1, - "type": "query" + "type": "custom" }, { "auto": false, "auto_count": 30, "auto_min": "10s", "current": { - "selected": false, + "selected": true, "text": "1m", "value": "1m" }, @@ -1758,6 +1753,6 @@ "timezone": "browser", "title": "Database Performance", "uid": "adxl34wpc3if4a", - "version": 5, + "version": 9, "weekStart": "" } diff --git a/grafana/dashboards/grpc-server.json b/grafana/dashboards/grpc-server.json index 78c0fde7..22158e5c 100755 --- a/grafana/dashboards/grpc-server.json +++ b/grafana/dashboards/grpc-server.json @@ -2796,31 +2796,27 @@ "list": [ { "current": { - "selected": false, + "selected": true, "text": "store", "value": "store" }, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "definition": "label_values(job)", + "description": "Name of the database", "hide": 0, "includeAll": false, "label": "Job", "multi": false, "name": "JOB", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(job)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", + "options": [ + { + "selected": true, + "text": "store", + "value": "store" + } + ], + "query": "store", + "queryValue": "", "skipUrlSync": false, - "sort": 1, - "type": "query" + "type": "custom" }, { "auto": false, @@ -2907,6 +2903,6 @@ "timezone": "browser", "title": "gRPC Server", "uid": "cdydeqdbz124gf", - "version": 3, + "version": 6, "weekStart": "" }