percona / mongodb_exporter

A Prometheus exporter for MongoDB including sharding, replication and storage engines
Apache License 2.0
1.14k stars 421 forks source link

mongodb-instance-summary dashboard not displaying metric data #868

Open kaykhan opened 3 weeks ago

kaykhan commented 3 weeks ago

Describe the bug

I have kube-prometheus-stack deployed on my kubernetes cluster. I have percona mongodb server + operator running within this cluster. I have setup mongodb_exporter as a sidecar. I have also installed the dashboards by firstly converting them using convert-dash-from-PMM.py.

https://github.com/percona/grafana-dashboards/tree/main/dashboards/MongoDB

However i can see the dashboard mongodb-instance-summary is not loading any data.

( i can see i have yet to install that one plugin ) image

In comparison the mongodb-instances-overview dashboard does show data.

image

To Reproduce Steps to reproduce the behavior:

  1. Install latest version of percona mongodb operator + server https://docs.percona.com/percona-operator-for-mongodb/index.html.

  2. Attach mongodb-exporter as a side car using the following params.

        sidecars:
          - image: percona/mongodb_exporter:0.40
            name: metrics 
            env:
            - name: EXPORTER_USER
              valueFrom:
                secretKeyRef:
                  name: psmdb-db-internal-secrets
                  key: MONGODB_CLUSTER_MONITOR_USER
            - name: EXPORTER_PASS
              valueFrom:
                secretKeyRef:
                  name: psmdb-db-internal-secrets
                  key: MONGODB_CLUSTER_MONITOR_PASSWORD
            - name: POD_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: MONGODB_URI
              value: "mongodb://$(EXPORTER_USER):$(EXPORTER_PASS)@[$(POD_IP)]:27017"
            args: ["--discovering-mode", "--compatible-mode", "--collect-all", "--mongodb.uri=$(MONGODB_URI)"]
  1. Convert the dashboard and then install onto grafana instance.
python convert-dash-from-PMM.py ../dashboards/MongoDB/MongoDB_Instance_Summary.json

Expected behavior I expect this dashboard to have data as it use to do.

Logs N/A

Environment

Additional context

I believe there a few other dashboards not displaying data aswell. I have a feeling it must be to do with the scraping/naming of the underlining metrics, given that one dashboard works and the other's don't. These dashboards work in our current production version 6 but on this test cluster which uses version 7 and latest percona operator they don't work.