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

Add extra tests and improve error handling in watermark metrics #752

Merged
merged 1 commit into from
Oct 15, 2023

Conversation

sysadmind
Copy link
Contributor

Improve the error handling for watermark metrics. When we have an error, do not report a 0 value for the metric.

Adds tests for parsing the ratio/percentage and the human readable bytes in watermark data.

Functionality originally added in #611

@sysadmind sysadmind requested a review from SuperQ July 21, 2023 19:23
@sysadmind
Copy link
Contributor Author

cc @tomachine

Improve the error handling for watermark metrics. When we have an error, do not report a 0 value for the metric.

Adds tests for parsing the ratio/percentage and the human readable bytes in watermark data.

Functionality originally added in prometheus-community#611

Signed-off-by: Joe Adams <[email protected]>
Copy link
Contributor

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

Thanks

@sysadmind sysadmind merged commit c3b7d97 into prometheus-community:master Oct 15, 2023
@sysadmind sysadmind added this to the Test Cleanup milestone Oct 16, 2023
@sysadmind sysadmind deleted the 611-cleanup branch October 16, 2023 12:43
jaimeyh pushed a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
…etheus-community#752)

Improve the error handling for watermark metrics. When we have an error, do not report a 0 value for the metric.

Adds tests for parsing the ratio/percentage and the human readable bytes in watermark data.

Functionality originally added in prometheus-community#611

Signed-off-by: Joe Adams <[email protected]>
jaimeyh added a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
jaimeyh added a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 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.

2 participants