# Metrics from mongodb\_exporter do not work with grafana-dashboards

**URL:** <https://forums.percona.com/t/metrics-from-mongodb-exporter-do-not-work-with-grafana-dashboards/28517>\
**Category:** MongoDB® General Discussion\
**Created:** [February 16, 2024, 10:37pm UTC](https://forums.percona.com/t/metrics-from-mongodb-exporter-do-not-work-with-grafana-dashboards/28517 "2024-02-16T22:37:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy\_Chen](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jimmy_chen/32/15189_2.png) [@Jimmy\_Chen](https://forums.percona.com/u/Jimmy_Chen)\
**Post date:** [February 16, 2024, 10:37pm UTC](https://forums.percona.com/t/metrics-from-mongodb-exporter-do-not-work-with-grafana-dashboards/28517/1 "2024-02-16T22:37:42Z")

</div>

I’m testing deploying the `mongodb_exporter` from [GitHub - percona/mongodb\_exporter: A Prometheus exporter for MongoDB including sharding, replication and storage engines](https://github.com/percona/mongodb_exporter) on MongoDB 7 replicaset cluster. The exporter is deployed with the flags `--collect-all --discovering-mode --compatible-mode` . The metrics are then scraped by Prometheus instance. To visualize the metrics, I pulled down the latest `master` branch of [GitHub - percona/grafana-dashboards: PMM dashboards for database monitoring](https://github.com/percona/grafana-dashboards). Using the Python script `convert-dash-from-PMM.py` , I was able to convert the MongoDB dashboards to use with external instance of Grafana. However, after importing the dashboards, most of the graphs are empty. In checking the variables and metrics the graphs are using, most of which are not found in the metrics presented by the `mongodb_exporter`. What exactly am I missing here?

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [February 18, 2024, 9:02pm UTC](https://forums.percona.com/t/metrics-from-mongodb-exporter-do-not-work-with-grafana-dashboards/28517/2 "2024-02-18T21:02:46Z")

</div>

Hey @Jimmy_Chen,

as these dashboards are used in PMM, we might be shipping some additional metrics with it.  
But I would love our PMM/exporters experts to chime in. @Roma_Novikov thoughts?

---

<div class="post-metadata">

**Author:** ![Jimmy\_Chen](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jimmy_chen/32/15189_2.png) [@Jimmy\_Chen](https://forums.percona.com/u/Jimmy_Chen)\
**Post date:** [February 18, 2024, 9:35pm UTC](https://forums.percona.com/t/metrics-from-mongodb-exporter-do-not-work-with-grafana-dashboards/28517/3 "2024-02-18T21:35:01Z")

</div>

Hi @Sergey_Pronin. My understanding is that the Python script `convert-dash-from-PMM.py` is supposed to export the dashboard JSON for us with non-PMM installation of Grafana, and it compatible with the `mongodb_exporter`. I found issues on GitHub indicating it is the right dashboard to use [Dashboards · Issue #472 · percona/mongodb\_exporter · GitHub](https://github.com/percona/mongodb_exporter/issues/472), and [no dashboard? · Issue #642 · percona/mongodb\_exporter · GitHub](https://github.com/percona/mongodb_exporter/issues/642).

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [February 19, 2024, 5:12pm UTC](https://forums.percona.com/t/metrics-from-mongodb-exporter-do-not-work-with-grafana-dashboards/28517/4 "2024-02-19T17:12:52Z")

</div>

Hey @Jimmy_Chen,  
The script you are referring to is an unsupported/miscellaneous tool that has not been updated in 2-3 years, and has the following warning at the top: [grafana-dashboards/misc/convert-dash-from-PMM.py at main · percona/grafana-dashboards · GitHub](https://github.com/percona/grafana-dashboards/blob/main/misc/convert-dash-from-PMM.py#L8C1-L11C82)

You should be able to use your Grafana explorer to find the variable names and then edit the panel JSON manually to fix them.
