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

sonarr_system_health_issues only exists in the dashboard2, not as an exported metric #134

Closed
bluefishforsale opened this issue Mar 22, 2023 · 6 comments · Fixed by #135
Closed

Comments

@bluefishforsale
Copy link

Details

grafana/dashboard2.json has section for sonarr health

sonarr health in grafana/dashboard2.json depends on "expr": "sonarr_system_health_issues"

sonarr_system_health_issues only exists in the dashboard, not as an exported metric
https://github.com/onedr0p/exportarr/search?q=sonarr_system_health_issues

Either the dashboard is out of date, or the metric exists in some branch other than master.

@onedr0p
Copy link
Owner

onedr0p commented Mar 22, 2023

What you are looking for in code is here, this metric is only exported when there are health issues in any of the Arrs.

fmt.Sprintf("%s_system_health_issues", c.Arr),

@johannmx
Copy link

Same here for qualities section of dashboard2.json (sonarr_episode_quality_total) only for radarr exists

Sonar metrics:

image

Radarr metrics:

image

@rtrox
Copy link
Collaborator

rtrox commented Mar 22, 2023

For sonarr, the episode_quality metric are hidden behind ENABLE_ADDITIONAL_METRICS/--enable-additional-metrics. In sonarr land, it requires additional API calls to get per-quality metrics, so there's a flag to enable it, where it's exported by default in radarr.

@rtrox
Copy link
Collaborator

rtrox commented Mar 22, 2023

For health issues, though, we should probably be sending Zeroes when there's no issues though, I can create a PR for that.

if len(systemHealth) > 0 {

@onedr0p
Copy link
Owner

onedr0p commented Mar 22, 2023

For sonarr, the episode_quality metric are hidden behind ENABLE_ADDITIONAL_METRICS/--enable-additional-metrics. In sonarr land, it requires additional API calls to get per-quality metrics, so there's a flag to enable it, where it's exported by default in radarr.

@johannmx To iterate on this, I have roughly 500 series and 25k episodes and enabling the additional metrics causes the exportarr to take around 30 seconds to collect this data. Beware enabling it and adjust your intervals as such. This will likely not be improved until Sonarr provides an API to better collect this data.

@johannmx
Copy link

For sonarr, the episode_quality metric are hidden behind ENABLE_ADDITIONAL_METRICS/--enable-additional-metrics. In sonarr land, it requires additional API calls to get per-quality metrics, so there's a flag to enable it, where it's exported by default in radarr.

@johannmx To iterate on this, I have roughly 500 series and 25k episodes and enabling the additional metrics causes the exportarr to take around 30 seconds to collect this data. Beware enabling it and adjust your intervals as such. This will likely not be improved until Sonarr provides an API to better collect this data.

Thank you @onedr0p for the info!

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 a pull request may close this issue.

4 participants