-
What are you trying to achieve?
I want to visualize metrics from a MongoDB deployment in Grafana . -
How are you trying to achieve it?
I have registered the exporter sidecar with my existing Grafana-Loki deployment and the endpoint is visible from Prometheus targets. To visualize the metrics I added a dashboard that will allow me to select the namespace as well as my MongoDB pod -
What happened?
I added a new namespace to my cluster and under that namespace I deployed a MongoDB deployment that has a prometheus-exporter sidecar. The sidecar can successfully query metrics from the container and having configued a ServiceMonitor I can also see the endpoint in my Prometheus targets.
However when I click on the namespaces dropdown under this Dashboard that I have imported I cannot see my target namespace. The dropdown shows only all the existing namespaces
- What did you expect to happen?
I expected to see my namespace in the namespace dropdown. My understanding is that Grafana should automatically discover any new namespace added to the cluster (Is this wrong?)
version and operating system
Grafana-Loki version - v8.3.5 (a53fcac7b1)
Platform - Kubernetes Openshift