From 7b6c4ee41526c05385e63846d6e6aef7c8959f88 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Sun, 24 Apr 2022 23:20:54 +0200 Subject: [PATCH] fix(postgres-system): Fix broken podMonitor namespace selector If no namespace selector is sepcified, it will only search in the current namespace. This is not intended for this podMonitor, therefore a config to explicitly search all namespaces is required. References: https://github.com/prometheus-operator/prometheus-operator/blob/615162d6d35314f94cb9c69f51bc47d62b81f154/Documentation/api.md#namespaceselector --- infrastructure/postgres/podmonitor.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infrastructure/postgres/podmonitor.yaml b/infrastructure/postgres/podmonitor.yaml index 57409ffca..bdc0b216c 100644 --- a/infrastructure/postgres/podmonitor.yaml +++ b/infrastructure/postgres/podmonitor.yaml @@ -8,6 +8,8 @@ spec: selector: matchLabels: application: spilo + namespaceSelector: + any: true podMetricsEndpoints: - port: exporter interval: 15s -- GitLab