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
.
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 )
In comparison the mongodb-instances-overview dashboard does show data.
-
Install latest version of percona mongodb operator + server Percona Operator for MongoDB.
-
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)"]
- Convert the dashboard and then install onto grafana instance.
python convert-dash-from-PMM.py ../dashboards/MongoDB/MongoDB_Instance_Summary.json
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.