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

Atlas Process metrics missing? #719

Open
horochj opened this issue Oct 6, 2023 · 0 comments
Open

Atlas Process metrics missing? #719

horochj opened this issue Oct 6, 2023 · 0 comments

Comments

@horochj
Copy link

horochj commented Oct 6, 2023

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:
- name: nri-mongodb3
config:
# User-defined name to uniquely identify the cluster being monitored. Required.
mongodb_cluster_name: alert-poc-cls

    # MongoDB connection URI. If used overwrites all other connection parameters.
    mongodb_uri:  mongodb+srv://<user>:<password>@my_atlas_cluster.teoz1.mongodb.net/?retryWrites=true&w=majority

    # MongoDB direct connect. Whether or not a direct connect should be made.
    # Direct connections are not valid if multiple hosts are specified or an SRV URI is used, for example for mongoDB Atlas.
    mongodb_direct_connect: false

    # List of comma separated databases.collections to retrieve collection stats.
    collection_filters:

    # List of comma separated databases.collections to retrieve index stats.
    index_filters:

    # Enable/Disable collection of Database metrics
    database_stats: true

    # Enable/Disable collection of Collections metrics
    collection_stats: true

    # Enable/Disable collection of Index metrics
    index_stats: true

    # Enable/Disable collection of Replica Set metrics
    replicaset_stats: true

    # Enable/Disable collection of Top Admin metrics
    top_stats: true

    # Enable/Disable collection of Diagnostic metrics
    diagnostic_stats: true

    # Port to expose scrape endpoint on, If this is not provided a random port will be used to launch the exporter
    exporter_port: 9126
  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.

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