I've installed the prometheus-operator by helm 3:
helm install prom stable/prometheus-operator --namespace monitor
But I also want to set the namespace for the service discovery which is "default" in the standard installation.
When I query the prometheus config, I see this:
kubernetes_sd_configs:
- role: endpoints
namespaces:
names:
- default
I've checked the documentation of the prometheus-operator, but I can't find an option of how to change the default namespace.
There's a parameter serviceMonitorNamespaceSelector
, but this seems to search the serviceMonitor itself in the namespace.