mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-08 22:05:06 +02:00
fix: cloudnative-pg dashboard - conflicted label - cluster
This commit is contained in:
@@ -9177,28 +9177,28 @@
|
|||||||
"description": "CNPG Cluster",
|
"description": "CNPG Cluster",
|
||||||
"hide": 0,
|
"hide": 0,
|
||||||
"includeAll": false,
|
"includeAll": false,
|
||||||
"label": "Cluster",
|
"label": "CNPG Cluster",
|
||||||
"multi": false,
|
"multi": false,
|
||||||
"name": "cluster",
|
"name": "cnpg_cluster",
|
||||||
"options": [],
|
"options": [],
|
||||||
"query": {
|
"query": {
|
||||||
"query": "cnpg_collector_up{namespace=~\"$namespace\"}",
|
"query": "cnpg_collector_up{namespace=~\"$namespace\"}",
|
||||||
"refId": "PrometheusVariableQueryEditor-VariableQuery"
|
"refId": "PrometheusVariableQueryEditor-VariableQuery"
|
||||||
},
|
},
|
||||||
"refresh": 2,
|
"refresh": 2,
|
||||||
"regex": "/\\bcluster\\b=\"(?<text>[^\"]+)/g",
|
"regex": "/\\bexported_cluster\\b=\"(?<text>[^\"]+)/g",
|
||||||
"skipUrlSync": false,
|
"skipUrlSync": false,
|
||||||
"sort": 1,
|
"sort": 1,
|
||||||
"type": "query"
|
"type": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allValue": "$cluster-([1-9][0-9]*)",
|
"allValue": "$cnpg_cluster-([1-9][0-9]*)",
|
||||||
"current": {},
|
"current": {},
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "${DS_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",
|
"description": "Database cluster instances",
|
||||||
"hide": 0,
|
"hide": 0,
|
||||||
"includeAll": true,
|
"includeAll": true,
|
||||||
@@ -9208,7 +9208,7 @@
|
|||||||
"options": [],
|
"options": [],
|
||||||
"query": {
|
"query": {
|
||||||
"qryType": 4,
|
"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"
|
"refId": "PrometheusVariableQueryEditor-VariableQuery"
|
||||||
},
|
},
|
||||||
"refresh": 2,
|
"refresh": 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user