From 2b8f2e7ea1d01e1370bc6b9ba6a104f5fb464d1f Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Sun, 24 Apr 2022 22:59:18 +0200 Subject: [PATCH] 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. --- infrastructure/postgres/dashboards/postgresql-database.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infrastructure/postgres/dashboards/postgresql-database.json b/infrastructure/postgres/dashboards/postgresql-database.json index 6724373d0..53558359e 100644 --- a/infrastructure/postgres/dashboards/postgresql-database.json +++ b/infrastructure/postgres/dashboards/postgresql-database.json @@ -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": "", -- GitLab