feat: add sportarr exporter - #430
Open
Sportarr wants to merge 1 commit into
Open
Conversation
Adds a sportarr command exporting the same metric families as the sonarr exporter (series/season/episode totals, queue, root folder, disk space, status, health) with the sportarr_ prefix. Sportarr (https://github.com/Sportarr/Sportarr) serves the Sonarr-v3-shaped endpoints these collectors consume; its history endpoint is not paged, so runs pair naturally with --disable-history-metrics. Collector, tests and testdata mirror the sonarr set; go test and golangci-lint are clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the change
Adds a
sportarrcommand for Sportarr, a sports event manager exposing Sonarr-v3-shaped endpoints. The command reuses the shared arr collectors (queue, root folder, disk space, status, health) plus a sportarr collector mirroring the sonarr one (series/season/episode totals, monitored/missing/cutoff-unmet), all under the sportarr_ metric prefix. Tests and testdata mirror the sonarr set.Benefits
Sportarr users get first-class Prometheus metrics under their own prefix instead of pointing the sonarr exporter at it and reading mislabeled metrics.
Possible drawbacks
None known. The command only adds new files plus registration mirroring the sonarr command; no existing collector behavior changes.
Applicable issues
None.
Additional information
go build,go test ./...andgolangci-lint runare all clean. Live-verified against a real Sportarr instance; every collector family populates with zero scrape errors. Requires Sportarr v4.1.0 or newer. I maintain Sportarr and will keep the exporter integration updated.