percona / mongodb_exporter

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

Atlas Process metrics missing? #719

Open horochj opened 1 year ago

horochj commented 1 year ago

Describe the bug I'm trying to map my existing MongoDB Atlas alerts to new relic alerts, but there appear to be some missing when I use the mongodb_exporter new relic integration. For example, in Atlas I can alert on:

QUERY_TARGETING_SCANNED_OBJECTS_PER_RETURNED QUERY_TARGETING_SCANNED_PER_RETURNED OPLOG_SLAVE_LAG_MASTER_TIME OPLOG_MASTER_LAG_TIME_DIFF CONNECTIONS_PERCENT

but when I review the metrics available to me in New Relic using the new mongodb exporter integration these are not visible.

To Reproduce Steps to reproduce the behavior:

  1. what parameters are being passed to mongodb_exporter

integrations:

  1. describe steps to reproduce the issue. Log into new relic and connect to MongoDB infra running the exporter integration and review available metrics

Expected behavior Within new relic using the mongodb3 integration I expect to see the same set of metrics that are visible to me within the MongoDB Atlas portal.

Logs Please provide logs relevant to the issue

Environment MongoDB atlas version 6.0.1

Additional context Comment from new relic support: Basically this integration uses the mongodb prometheus exporter and it scrapes that exporter set up on the system running the infra agent for the metrics supported by the exporter. Due to this we believe that if the metric isn't listed in the above doc then its not being exporter via the open source exporter. See github for this exporter https://github.com/percona/mongodb_exporter. If you need an update to the metrics being returned from that exporter we suggest putting in an issue on their github page and once that has been implemented then we will get that update downstream and start pulling in that data.