Skip to content
Snippets Groups Projects
Verified Commit 2b8f2e7e authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(postgres-system): Fix dashboard variables

This renames some labels used in queries to match the results from the
podMonitor instead of relying on additional labels set by the exporter.
parent c7442812
No related branches found
No related tags found
No related merge requests found
......@@ -3032,7 +3032,7 @@
"options": [],
"query": "query_result(pg_exporter_last_scrape_duration_seconds)",
"refresh": 2,
"regex": "/.*kubernetes_namespace=\"([^\"]+).*/",
"regex": "/.*exported_namespace=\"([^\"]+).*/",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
......@@ -3052,9 +3052,9 @@
"multi": false,
"name": "release",
"options": [],
"query": "query_result(pg_exporter_last_scrape_duration_seconds{kubernetes_namespace=\"$namespace\"})",
"query": "query_result(pg_exporter_last_scrape_duration_seconds{exported_namespace=\"$namespace\"})",
"refresh": 2,
"regex": "/.*release=\"([^\"]+)/",
"regex": "/.*cluster_name=\"([^\"]+)/",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment