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/mongodbatlas] Add mongodb_atlas.cluster.name on metrics resource #21154

Closed
dehaansa opened this issue Apr 25, 2023 · 3 comments
Closed
Assignees
Labels

Comments

@dehaansa
Copy link
Contributor

Component(s)

receiver/mongodbatlas

Is your feature request related to a problem? Please describe.

Cluster Name is a very useful attribute to have when identifying issues using MongoDB Atlas metrics.

Describe the solution you'd like

As noted in the client in code, the API does not draw the connection for you from Process (mongod/mongos) to Cluster, but the connection can be easily drawn by using the Cluster's MongoURI and the Process's UserAlias.

"mongo_uri": "mongodb://host1.mongodb.net:27017,host2.mongodb.net:27017,host3.mongodb.net:27017"

"user_alias": "host1.mongodb.net"

Describe alternatives you've considered

There does not appear to be a way in the Atlas API to connect these objects and appropriately label the metrics emitted without using the mentioned connection.

Additional context

No response

@dehaansa dehaansa added enhancement New feature or request needs triage New item requiring triage labels Apr 25, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@dehaansa
Copy link
Contributor Author

I will make this default-disabled, like the user_alias addition in #18881

@atoulme
Copy link
Contributor

atoulme commented Apr 29, 2023

Closing as fixed, thanks!

@atoulme atoulme closed this as completed Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants