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

Shared System Health collector should export zero when no health issu… #135

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

rtrox
Copy link
Collaborator

@rtrox rtrox commented Mar 22, 2023

…es are present

Description of the change

As title -- system_health_issues was treated like an info metric (always export 1, conveying meaning via labels), but is frequently used as a count. To faciliate this without everyone needing to OR vector(0), we should just export a zero metric when no health issues are present.

Benefits

Possible drawbacks

Applicable issues

Additional information

@rtrox rtrox requested a review from onedr0p as a code owner March 22, 2023 21:33
@onedr0p onedr0p merged commit fed7319 into master Mar 22, 2023
@onedr0p onedr0p deleted the health_zero_on_no_issues branch March 29, 2024 12:32
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.

sonarr_system_health_issues only exists in the dashboard2, not as an exported metric
2 participants