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

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

Open
kaykhan opened this issue Jun 26, 2024 · 0 comments
Open

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

kaykhan opened this issue Jun 26, 2024 · 0 comments

Comments

@kaykhan
Copy link

kaykhan commented Jun 26, 2024

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

  • OS,
  • environment (docker, k8s, etc): EKS 1.30
  • MongoDB: 7

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant