-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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] fix attribute key on disk partition metrics #7747
Conversation
67960f0
to
57f3a6e
Compare
57f3a6e
to
9eb56f9
Compare
@@ -579,15 +579,15 @@ metrics: | |||
description: Disk partition space | |||
extended_documentation: Aggregate of MongoDB Metrics DISK_PARTITION_SPACE_FREE, DISK_PARTITION_SPACE_USED | |||
unit: By | |||
attributes: [memory_state] | |||
attributes: [disk_status] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to repeat "disk"? "status" is not enough?
As example for host metrics we don't have "memory_state" and "cpu_state".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like all the attribute names in this scraper have prefixes like memory_
, ticket_
, cache_
, disk_
etc.
I know that we aim to avoid such prefixes in other scrapers but cannot find any guidelines in the spec other than this:
Common attributes SHOULD be consistently named. This aids in discoverability and disambiguates similar attributes to metric names.
@bogdandrutu do you know if we have such guidelines somewhere? maybe I miss it.
9eb56f9
to
d417cac
Compare
4ca9776
to
3f62a78
Compare
Description: These should have all been using the
disk_status
key for the attributes, notmemory_state
.