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

Store Disk I/O metrics if available #841

Merged
merged 2 commits into from
Dec 17, 2019

Conversation

danielmitterdorfer
Copy link
Member

With this commit we split the check for disk I/O metrics for reads and
writes. This avoids the case when one of these metrics is either None
or 0, the other metric is still added to the metrics store (this
scenario might happen if data is only written but never read so the read
counter is zero). We also change the check to test for None explicitly
because we even want to add metrics to the metrics store if the value is
zero.

With this commit we split the check for disk I/O metrics for reads and
writes. This avoids the case when one of these metrics is either `None`
or `0`, the other metric is still added to the metrics store (this
scenario might happen if data is only written but never read so the read
counter is zero). We also change the check to test for `None` explicitly
because we even want to add metrics to the metrics store if the value is
zero.
@danielmitterdorfer danielmitterdorfer added bug Something's wrong :Telemetry Telemetry Devices that gather additional metrics labels Dec 16, 2019
@danielmitterdorfer danielmitterdorfer added this to the 1.4.0 milestone Dec 16, 2019
@danielmitterdorfer danielmitterdorfer self-assigned this Dec 16, 2019
Copy link
Contributor

@ebadyano ebadyano left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@danielmitterdorfer
Copy link
Member Author

Thanks for the review! :)

@danielmitterdorfer danielmitterdorfer merged commit ffccbf0 into elastic:master Dec 17, 2019
@danielmitterdorfer danielmitterdorfer deleted the store-disk-io branch December 17, 2019 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's wrong :Telemetry Telemetry Devices that gather additional metrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants