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] fix attribute key on disk partition metrics #7747

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

mstumpfx
Copy link

@mstumpfx mstumpfx commented Feb 7, 2022

Description: These should have all been using the disk_status key for the attributes, not memory_state.

@@ -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]
Copy link
Member

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".

Copy link
Member

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.

@mstumpfx mstumpfx force-pushed the mongodbatlas branch 2 times, most recently from 4ca9776 to 3f62a78 Compare February 28, 2022 22:47
@jpkrohling jpkrohling enabled auto-merge (squash) March 9, 2022 14:59
@jpkrohling jpkrohling merged commit 5cd8dd9 into open-telemetry:main Mar 9, 2022
@mstumpfx mstumpfx deleted the mongodbatlas branch March 9, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants