Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus: watch CRs in all namespaces #195

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

schnatterer
Copy link
Member

@schnatterer schnatterer commented Jun 7, 2024

This allows application to create ServiceMonitors in their own namespace .
Fits much better with our least privilege and multi-tenancy approaches.

You can validate if it works by solving this exercise:
https://cloudogu.github.io/workshop-cloudland24/#/exercise-monitoring

@schnatterer schnatterer force-pushed the feature/prometheus-all-namespaces branch 2 times, most recently from bfd334d to 649aa94 Compare June 7, 2024 13:16
This allows application to create ServiceMonitors in their own namespace
.
Fits much better with our least privilege and multi-tenancy approaches.

On top of that remove the need to add a label to each ServiceMonitor.
This makes them easier to use.

Note that
any: true
instead of
matchLabels: {}
as described here:
prometheus-community/helm-charts#106
fails, because not in schema.
@schnatterer schnatterer force-pushed the feature/prometheus-all-namespaces branch from 649aa94 to 136f917 Compare June 17, 2024 18:33
@yannickchristhomas yannickchristhomas merged commit 510f750 into main Jun 18, 2024
1 check passed
@yannickchristhomas yannickchristhomas deleted the feature/prometheus-all-namespaces branch June 18, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants