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

Fix export of stale device error metrics for unmounted filesystems #533

Merged
merged 2 commits into from
Mar 23, 2017

Conversation

grobie
Copy link
Member

@grobie grobie commented Mar 23, 2017

Instead of maintaining a counter metric for device errors in memory,
this change exports a gauge and uses const metrics to avoid leaking
metrics for unmounted filesystems.

Fixes #527.

@rtreffer @SuperQ @discordianfish

Instead of maintaining a counter metric for device errors in memory,
this change exports a gauge and uses const metrics to avoid leaking
metrics for unmounted filesystems.
@SuperQ
Copy link
Member

SuperQ commented Mar 23, 2017

I was thinking about the idea that we could also keep a global counter of device errors, in addition to the per-device gauge values. But this fixes the bug just fine.

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

@discordianfish
Copy link
Member

Dang.. Thanks for fixing it!

@discordianfish discordianfish merged commit 4f59422 into master Mar 23, 2017
@grobie grobie deleted the grobie/fix-filesystem-error-metric branch April 11, 2017 02:24
brian-brazil added a commit that referenced this pull request Feb 7, 2018
grobie added a commit that referenced this pull request Feb 7, 2018
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
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.

3 participants