specifying namespace(s) to filter collection #839
Unanswered
peterdnight
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Setting Following code will result in the same manifests as we have in
$ git diff
...
...
diff --git a/manifests/prometheus-prometheus.yaml b/manifests/prometheus-prometheus.yaml
index 0548a95..166acfc 100644
--- a/manifests/prometheus-prometheus.yaml
+++ b/manifests/prometheus-prometheus.yaml
@@ -28,7 +28,7 @@ spec:
podMonitorSelector: {}
probeNamespaceSelector: {}
probeSelector: {}
- replicas: 2
+ replicas: 1
resources:
requests:
memory: 400Mi |
Beta Was this translation helpful? Give feedback.
0 replies
-
In prometheus-operator logs do you see ServiceMonitors from other namespaces being picked up? Are targets from other services registered in prometheus |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Desired outcome: only collect/display metrics for specified namespace(s).
I have been able to checkout/build/customize 0.7, but when i add replicas exactly as shown in samples on front page (directly under config), it is ignored. I also tried adding namespaces, and while it seems to affect which roles are being generated - grafana still displays all namespaces. Given configuration below - is it expected that only the kube-system pods be collected/displayed in grafana?
Hints appreciated.
Beta Was this translation helpful? Give feedback.
All reactions