From 84b30c02331252ddf0dbe2dea9b9bf770107abb2 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 17 Aug 2025 16:25:38 +0800 Subject: [PATCH] fix: cloudnative-pg dashboard - conflicted label - cluster --- .../grafana/dashboards/databases/cloudnative-pg.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hosts/idols-aquamarine/grafana/dashboards/databases/cloudnative-pg.json b/hosts/idols-aquamarine/grafana/dashboards/databases/cloudnative-pg.json index a8755755..10ce4969 100644 --- a/hosts/idols-aquamarine/grafana/dashboards/databases/cloudnative-pg.json +++ b/hosts/idols-aquamarine/grafana/dashboards/databases/cloudnative-pg.json @@ -9177,28 +9177,28 @@ "description": "CNPG Cluster", "hide": 0, "includeAll": false, - "label": "Cluster", + "label": "CNPG Cluster", "multi": false, - "name": "cluster", + "name": "cnpg_cluster", "options": [], "query": { "query": "cnpg_collector_up{namespace=~\"$namespace\"}", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 2, - "regex": "/\\bcluster\\b=\"(?[^\"]+)/g", + "regex": "/\\bexported_cluster\\b=\"(?[^\"]+)/g", "skipUrlSync": false, "sort": 1, "type": "query" }, { - "allValue": "$cluster-([1-9][0-9]*)", + "allValue": "$cnpg_cluster-([1-9][0-9]*)", "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, - "definition": "cnpg_collector_up{namespace=~\"$namespace\",pod=~\"$cluster-([1-9][0-9]*)$\"}", + "definition": "cnpg_collector_up{namespace=~\"$namespace\",pod=~\"$cnpg_cluster-([1-9][0-9]*)$\"}", "description": "Database cluster instances", "hide": 0, "includeAll": true, @@ -9208,7 +9208,7 @@ "options": [], "query": { "qryType": 4, - "query": "cnpg_collector_up{namespace=~\"$namespace\",pod=~\"$cluster-([1-9][0-9]*)$\"}", + "query": "cnpg_collector_up{namespace=~\"$namespace\",pod=~\"$cnpg_cluster-([1-9][0-9]*)$\"}", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 2,