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

[mongodb] better metric tagging #2457

Merged
merged 2 commits into from
May 13, 2016
Merged

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Apr 29, 2016

[mongodb] replset_name tag 🏷
Add replication set name tag, replset_name <U+1F3F7> to MongoDB metrics.

[mongodb] cluster:db:$dbnamedb:$dbname 🏷
MongoDB metrics are tagged with two key sets for the database name, i.e.

  • cluster:db:$dbname for dbStats metrics.
  • db:$dbname for top metrics.

For consistency, add a db:$dbname tag to dbStats metrics. Do not
remove the legacy cluster:db:$dbname to avoid backward
incompatibilities.

@yannmh yannmh self-assigned this Apr 29, 2016
@yannmh yannmh added this to the 5.8.0 milestone Apr 29, 2016
@olivielpeau olivielpeau assigned olivielpeau and unassigned yannmh Apr 29, 2016
metrics_tags = (
tags +
[
u"cluster:db:{0}".format(st), # Keep for backward compatibilty purpose
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this justifies adding a FIXME 6.0 in the comment, what do you think?

Also, small typo: compatibilty -> compatibility

@olivielpeau
Copy link
Member

👍 apart from my small comment

@olivielpeau olivielpeau assigned yannmh and unassigned olivielpeau May 10, 2016
Add replication set name tag, `replset_name` 🏷  to MongoDB metrics.
MongoDB metrics are tagged with two key sets for the database name, i.e.
* `cluster:db:$dbname` for `dbStats` metrics.
* `db:$dbname` for `top` metrics.

For consistency, add a `db:$dbname` tag to `dbStats` metrics. Do not
remove the legacy `cluster:db:$dbname` to avoid backward
incompatibilities.
@yannmh yannmh force-pushed the yann/mongodb-replset-name-tag branch from eeb8e4f to 95dede2 Compare May 13, 2016 17:04
@yannmh yannmh merged commit 4779639 into master May 13, 2016
@yannmh yannmh deleted the yann/mongodb-replset-name-tag branch May 13, 2016 17:20
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.

None yet

2 participants