# Mongodb exporter missing metrics

**URL:** <https://forums.percona.com/t/mongodb-exporter-missing-metrics/26307>\
**Category:** MongoDB\
**Tags:** mongodb-exporter\
**Created:** [November 2, 2023, 8:53am UTC](https://forums.percona.com/t/mongodb-exporter-missing-metrics/26307 "2023-11-02T08:53:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Minh\_Ngo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/minh_ngo/32/13608_2.png) [@Minh\_Ngo](https://forums.percona.com/u/Minh_Ngo)\
**Post date:** [November 2, 2023, 8:53am UTC](https://forums.percona.com/t/mongodb-exporter-missing-metrics/26307/1 "2023-11-02T08:53:17Z")

</div>

HI !  
i create a MongoDB exporter like this link [How To Monitor MongoDB with Grafana and Prometheus on Ubuntu 20.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-monitor-mongodb-with-grafana-and-prometheus-on-ubuntu-20-04#step-1-installing-and-configuring-prometheus) . But when I get metrics by curl [http://localhost:9216/metrics](http://localhost:9216/metrics) |grep mongo. the returrn like that

# HELP mongodb\_exporter\_build\_info A metric with a constant ‘1’ value labeled by version, revision, branch, and goversion from which mongodb\_exporter was built.

# TYPE mongodb\_exporter\_build\_info gauge

mongodb\_exporter\_build\_info{branch=“v0.7.1”,goversion=“go1.11.10”,revision=“3002738d50f689c8204f70f6cceb8150b98fa869”,version=“0.7.1”} 1

# HELP mongodb\_exporter\_last\_scrape\_duration\_seconds Duration of the last scrape of metrics from MongoDB.

# TYPE mongodb\_exporter\_last\_scrape\_duration\_seconds gauge

mongodb\_exporter\_last\_scrape\_duration\_seconds 0.000588663

# HELP mongodb\_exporter\_last\_scrape\_error Whether the last scrape of metrics from MongoDB resulted in an error (1 for error, 0 for success).

# TYPE mongodb\_exporter\_last\_scrape\_error gauge

mongodb\_exporter\_last\_scrape\_error 1

# HELP mongodb\_exporter\_scrape\_errors\_total Total number of times an error occurred scraping a MongoDB.

# TYPE mongodb\_exporter\_scrape\_errors\_total counter

mongodb\_exporter\_scrape\_errors\_total 8

# HELP mongodb\_exporter\_scrapes\_total Total number of times MongoDB was scraped for metrics.

# TYPE mongodb\_exporter\_scrapes\_total counter

mongodb\_exporter\_scrapes\_total 8

# HELP mongodb\_up Whether MongoDB is up.

# TYPE mongodb\_up gauge

mongodb\_up 0

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/a/a934f77aa1bcd12eec88c921f742ef4040c68bec.png)  
How I can export more metric

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [November 15, 2023, 5:55pm UTC](https://forums.percona.com/t/mongodb-exporter-missing-metrics/26307/2 "2023-11-15T17:55:30Z")

</div>

Hi, most likely the configured user for mongdb\_exporter doesn’t have enough perms. I strongly suggest you deploy PMM (instead of just the exporter) as you’ll get access to many more metrics as well as Query Analytics.
