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

[receiver/mongodbreceiver] Fix index access count error collection on a replica local database #21116

Conversation

JonathanWamsley
Copy link
Contributor

Description:

The scraper is reporting a scraper error Unauthorized when trying to collect index stats when the database is local. This occurs even when the correct roles are used.

This is for the metric mongodb.index.access.count which is The number of times an index has been accessed.. This is metric is to help monitor the amount an index has been access on user created indexes, not on internal databases such as the local database. The local database in MongoDB is used for internal purpose by MongoDB which manages replication, sharding and storage and should not be used directly by users. Furthermore, the local database is invisible to replication; collections in the local database are not replicated which is causing errors when attempting to do so.

Link to tracking Issue:
#21114

Testing:
Updated integration test so they are not showing no mongodb.index.access.count metric with local database being collected.
Documentation:

@github-actions github-actions bot requested review from djaglowski and schmikei April 24, 2023 15:35
@JonathanWamsley JonathanWamsley marked this pull request as ready for review April 24, 2023 16:58
@JonathanWamsley JonathanWamsley requested a review from a team April 24, 2023 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants