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

Option to set namespace for ServiceMonitor #230

Open
JElgar opened this issue Apr 15, 2024 · 0 comments
Open

Option to set namespace for ServiceMonitor #230

JElgar opened this issue Apr 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@JElgar
Copy link

JElgar commented Apr 15, 2024

Description
Currently when enabling monitoring the ServiceMonitor is installed in the same namespace as the other resources. It would be nice if a namespace could be specified in values for the ServiceMonitor (so that it can be put in the same namespace as other monitoring resources)

Basic example

Example values

serviceMonitor:
  enabled: true
  namespace: observability

Other

This might be a bad idea as it seems you can update Prometheus to detect ServiceMonitors in other namespaces. Its not very clear to me but it seems that having all monitoring resources in one namespace is also a valid pattern so if thats the case then I think this is a good option to have. Either way happy to help out with this if you think its worth doing.

@curquiza curquiza added the enhancement New feature or request label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants