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

Skip metrics that don't exist #2

Merged
merged 1 commit into from
Mar 20, 2017

Conversation

roclark
Copy link
Contributor

@roclark roclark commented Mar 20, 2017

If a metric doesn't exist, it should be skipped instead of returned. This is especially pertinant when running on certain storage nodes. For example, if running on the MGS node and the OSS metrics are not disabled, the collector would not export MGS metrics as it would return after the first OSS metric is not found.

Signed-Off-By: Robert Clark robert.d.clark@hpe.com

If a metric doesn't exist, it should be skipped instead of returned. This is especially pertinant when running on certain storage nodes. For example, if running on the MGS node and the OSS metrics are not disabled, the collector would not export MGS metrics as it would return after the first OSS metric is not found.

Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
@joehandzik
Copy link
Contributor

LGTM.

@joehandzik joehandzik merged commit 25e1e74 into HewlettPackard:master Mar 20, 2017
@roclark roclark deleted the skip-missing-metrics branch March 20, 2017 18:43
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.

2 participants