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

fix(postgres-system): fix unexpected behaviour difference

This patch fixes the unexpected change in bahaviour. When using a
namespace selector that selects one or multiple namespaces, there will
be two labels. `namespace`, where the podMonitor lives, and
`exported_namespace`, where the target pods is. When using a podMonitor
that scans any namespace, there is only a `namespace` label.
parent 7b6c4ee4
No related branches found
No related tags found
No related merge requests found
...@@ -3032,7 +3032,7 @@ ...@@ -3032,7 +3032,7 @@
"options": [], "options": [],
"query": "query_result(pg_exporter_last_scrape_duration_seconds)", "query": "query_result(pg_exporter_last_scrape_duration_seconds)",
"refresh": 2, "refresh": 2,
"regex": "/.*exported_namespace=\"([^\"]+).*/", "regex": "/.*namespace=\"([^\"]+).*/",
"skipUrlSync": false, "skipUrlSync": false,
"sort": 1, "sort": 1,
"tagValuesQuery": "", "tagValuesQuery": "",
...@@ -3052,7 +3052,7 @@ ...@@ -3052,7 +3052,7 @@
"multi": false, "multi": false,
"name": "release", "name": "release",
"options": [], "options": [],
"query": "query_result(pg_exporter_last_scrape_duration_seconds{exported_namespace=\"$namespace\"})", "query": "query_result(pg_exporter_last_scrape_duration_seconds{namespace=\"$namespace\"})",
"refresh": 2, "refresh": 2,
"regex": "/.*cluster_name=\"([^\"]+)/", "regex": "/.*cluster_name=\"([^\"]+)/",
"skipUrlSync": false, "skipUrlSync": false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment