Commit Graph

84 Commits

Author SHA1 Message Date
Gavin McFall
f4282b23cb
feat(sonarr): add series tag metrics (#405) 2025-12-09 08:15:32 -05:00
ShawnHardwick
367f6031df
Track total count of episodes with cutoff unmet in Sonarr (#375)
* Add sonarr_episode_cutoff_unmet_total metric

* Fix sonarr test fixture by adding missing json file

* Add radarr_movie_cutoff_unmet_total metric

* Remove compiled file

* Fix expected_metrics.txt for radarr using wrong HELP string

* Add missing end-of-line to test ficture JSON files

* Fix redeclare of CutoffUnmet type

* Fix EOL for radarr model

* Fix test fixture data for sonarr and radarr to match expectations
2025-08-12 00:14:47 -04:00
Michał Sawicz
def78d0339
Add quality weights (#350)
Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
2025-04-20 09:06:35 -04:00
Devin Buhl
baacf8df6e
fix: update golangci-lint and fix linting issues (#353) 2025-04-15 16:57:31 -04:00
Will Tekulve
4b1ee958a8
fix: resolve invalid port override (#334) 2025-03-22 18:50:40 -07:00
Nik LaBelle
7d1af014c0
Trim whitespace in API key file (#327)
Many editors insert newlines automatically, so we need to trim the api key from the file before we try to use it.
2024-11-14 04:57:26 -05:00
Russell Troxel
8161da029e
fix-263: remove hardcoded /sabnzbd from api path (#275)
Signed-off-by: Russell Troxel <russell@troxel.io>
2024-03-02 19:01:22 -05:00
Russell Troxel
793371b2a3
add missing valid api key tests (#274)
Signed-off-by: Russell Troxel <russell@troxel.io>
2024-03-02 12:45:35 -08:00
Devin Buhl
0cb318682e
fix: make api-key less restrictive (#270)
* fix: make api-key less restrictive

Signed-off-by: Devin Buhl <devin@buhl.casa>

* fix: update tests

Signed-off-by: Devin Buhl <devin@buhl.casa>

---------

Signed-off-by: Devin Buhl <devin@buhl.casa>
2024-02-28 15:45:53 -05:00
Russell Troxel
e398da13ca
fix(#252): Handle an empty Server Stat map returned from Sab. (#259)
Signed-off-by: Russell Troxel <russell@troxel.io>
2024-01-25 13:29:47 -05:00
Russell Troxel
3276edb0e9
[bazarr] Add bounded concurrency to episodes endpoint (#238)
* [bazarr] Add bounded concurrency to episodes endpoint

Signed-off-by: Russell <russell@troxel.io>

* Plumb Bazarr Config & Add defaults

Signed-off-by: Russell <russell@troxel.io>

* Move GolangCILint to run first

Signed-off-by: Russell <russell@troxel.io>

* break linter out into it's own job

Signed-off-by: Russell <russell@troxel.io>

* Bump default batch size to 300, put episode metrics behind EnableAdditionalMetrics

Signed-off-by: Russell Troxel <russell@troxel.io>

---------

Signed-off-by: Russell <russell@troxel.io>
Signed-off-by: Russell Troxel <russell@troxel.io>
2024-01-25 03:40:30 -05:00
Devin Buhl
4a2c58739a
fix: use QueryParams for excludeLocalCovers
Signed-off-by: Devin Buhl <devin@buhl.casa>
2023-11-07 15:40:23 -05:00
Devin Buhl
54377efa17
fix: use excludeLocalCovers=true in Radarr movies endpoint
This should help speed things up as the API req won't need to read files from disk.
2023-11-07 15:31:38 -05:00
Russell Troxel
e42774b10c
Add tests for Readarr (#236) 2023-10-20 09:04:49 -04:00
Russell Troxel
6b722c65ad
Add tests for Sonarr (#235) 2023-10-20 09:04:26 -04:00
Russell Troxel
2710c3d477
Add tests for Radarr (#234) 2023-10-19 18:20:21 -04:00
Russell Troxel
8c51f278ff
fix: Fix #230, Add tests for shared collectors (#231)
* fix: Fix #230, Add tests for shared collectors

Signed-off-by: Russell Troxel <russell@troxel.io>

* Fix lint: common TestServer

Signed-off-by: Russell Troxel <russell@troxel.io>

---------

Signed-off-by: Russell Troxel <russell@troxel.io>
2023-10-18 06:47:40 -04:00
Russell Troxel
b8426af721
Add golangci-lint, fix lint warnings (#227)
* Add golangci-lint, fix lint warnings

Signed-off-by: Russell Troxel <russell@troxel.io>

* Set `shell` on lint actions

Signed-off-by: Russell Troxel <russell@troxel.io>

* go fmt

Signed-off-by: Russell Troxel <russell@troxel.io>

---------

Signed-off-by: Russell Troxel <russell@troxel.io>
2023-10-08 14:15:07 -04:00
Russell Troxel
780dc842c3
Extend client to allow multi-value query parameters (#226)
Signed-off-by: Russell Troxel <russell@troxel.io>
2023-10-08 14:14:09 -04:00
Jack
b8b7cc6be3
Feature/support bazarr (#214)
* remove the branch requirement to run tests

feature/support-bazarr

* lint makefile

feature/support-bazarr

* add bazarr to readme

feature/support-bazarr

* also comment out release image as we only want tests to happen

feature/support-bazarr

* initial changes to start attempting to pull bazarr i thinnk?

feature/support-bazarr

* make it only run the tests, but skip release image

feature/support-bazarr

* add a genric makefile to build container localy, run and test

feature/support-bazarr

* rename build command

feature/support-bazarr

* add pic and grafana dashboard adjustments

feature/support-bazarr

* refactor metrics to just be contained within 1 class

* add logic to allow csv values to params

* remove some todos

* make api version optional

feature/support-bazarr

* adjust makefile to auto kill and start

feature/support-bazarr

* remove now invalid test

feature/support-bazarr

* add a test for no api version instead

feature/support-bazarr

* add a test to enforce csv params moving forward

feature/support-bazarr

* add saml payloads for all endpoints, add test that mocks and verifies result

feature/support-bazarr

* Update .env.dist

* Update .gitignore

* Update internal/client/client.go

* add a tidy task

---------

Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
2023-10-08 02:32:59 -04:00
Aneurin Price
453e4b2aad
Add new metric for toal number of movies with an Edition set (#216)
Co-authored-by: Aneurin Price <aneurinprice@adp@nyeprice.space>
2023-10-03 15:20:02 -04:00
Russell Troxel
c7ce467508
Add AppInfo metric & automatic build time app info population (#178) 2023-06-07 17:21:35 -04:00
Aneurin Price
69e16b5e08
Add support for scraping tags in radarr (#174)
* Add support for scraping tags in radarr]

* fix formatting and comment

* Fix incorrect metric scraping

* Update radarr.go

* Renamed based on feedback?

* Update internal/arr/model/radarr.go

---------

Co-authored-by: Aneurin Price <aneurinprice@adp@nyeprice.space>
Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
2023-05-28 12:36:23 -04:00
Russell Troxel
3cca07bc40
Parse unavailable indexer health messages and emit metric (#162)
Signed-off-by: Russell Troxel <russell@troxel.io>
2023-04-28 10:39:37 -04:00
Russell Troxel
9db1375072
Fix #151: target => url, warnings => queue_warnings for sabnzbd (#160)
Signed-off-by: Russell Troxel <russell@troxel.io>
2023-04-27 20:25:24 -04:00
Russell Troxel
a42b0cb848
Fix #154: Do not require Api Key or URL in parent config, validate in child config (#157)
Signed-off-by: Russell Troxel <russell@troxel.io>
2023-04-27 16:56:49 -04:00
Russell Troxel
60115f0310
diskspace1 * diskspace2 are free space, rather than used (#150)
Signed-off-by: Russell Troxel <russelltroxel@gmail.com>
2023-04-11 20:56:40 -04:00
Russell Troxel
33d5f9f3ea
Fix #148: Disk Metrics come back from the API in GB (#149)
Signed-off-by: Russell Troxel <russelltroxel@gmail.com>
2023-04-11 12:30:51 -04:00
Russell Troxel
9d4a8a1af2
Middleware (#142) 2023-04-07 09:42:41 -04:00
Russell Troxel
6dcb7b4d92
Add Sabnzbd Support (#141)
* Add Sabnzbd Support

Signed-off-by: Russell Troxel <russell@troxel.io>

* Fix collector name in sabnzbd logger

Signed-off-by: Russell Troxel <russell@troxel.io>

---------

Signed-off-by: Russell Troxel <russell@troxel.io>
2023-04-03 19:59:42 -04:00
Hadrien Patte
68ac4199b0
Fix unmonitored logic (#140) 2023-03-28 19:49:08 -04:00
Russell Troxel
73fbf8dfaf
Add Panic Recovery & Logging to Client JSON Unmarshalling (#139) 2023-03-28 14:33:13 -04:00
Russell Troxel
fed7319e77
Shared System Health collector should export zero when no health issues are present (#135)
Signed-off-by: Russell Troxel <russell.troxel@segment.com>
2023-03-22 18:22:35 -04:00
Devin Buhl
98e7b015e4
fix: validation string on enable-additional-metrics (#132) 2023-03-22 09:49:16 -04:00
Russell Troxel
ba4b336dfa
Fix #128: Get ApiVersion from defaults, not XMLConfig (#131)
Signed-off-by: Russell Troxel <russelltroxel@gmail.com>
2023-03-21 12:16:53 -04:00
Russell Troxel
662906ae64
Fix custom messages for config validation (#127) 2023-03-20 12:45:08 -04:00
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
ada5e82dd9
fix: Custom config validation message does not work on pointer (#126) 2023-03-20 08:29:16 -04:00
Russell Troxel
6ec2c40dc2
Additional Compatibility Measures (#122) 2023-03-18 13:18:31 -04:00
Russell Troxel
e4441056ab
Ensure Backwards compatiblity of new flags & envvar names (#120) 2023-03-18 13:08:59 -04:00
Russell Troxel
e3edbb2a65
Add --backfill & --backfill-since-date options for Prowlarr. (#117)
* Add backfill options to Prowlarr

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

* Update Readme

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>

---------

Signed-off-by: Russell Troxel <russell.troxel@segment.com>
Signed-off-by: Russell Troxel <russelltroxel@gmail.com>
2023-03-18 12:29:56 -04:00
Devin Buhl
f165b8266b
fix: rename lidarr_songs_missing_total to lidarr_albums_missing_total
Closes #82
2023-03-18 11:46:58 -04:00
Russell Troxel
3cd02da157
(3/3) Use Zap for structured logging rather than logrus. (#115)
* Refactor from logrus to zap, with structured logging

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

* Print config errors to stderr when before initLogger

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

---------

Signed-off-by: Russell Troxel <russell.troxel@segment.com>
2023-03-18 11:16:02 -04:00
Russell Troxel
78c9991d1e
(2/3) Use Cobra, Koanf, and Ozzo rather than urfave/cli (#114)
* Refactor to use Cobra and Koanf for CLI parsing

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

* use gookit/validate rather than ozzo-validation

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

---------

Signed-off-by: Russell Troxel <russell.troxel@segment.com>
2023-03-18 07:31:35 -04:00
Russell Troxel
05b277dec9
fix: Fix Query Param addition in client.go (#116)
Signed-off-by: Russell Troxel <russell.troxel@segment.com>
2023-03-17 16:04:26 -04:00
Russell Troxel
5834fa69fb
(1/3) Add Options for Auth via Form Data (#110)
Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
2023-03-17 14:53:13 -04:00
Russell Troxel
5abd638cbf
[Refactor] (2/2) Convert remaining collector Fatals to InvalidMetrics (#107) 2023-03-14 09:35:45 -04:00
Russell Troxel
3d59a7a462
[Refactor] (1/2) Refactor client to leverage a custom Transport & url.URL (#106)
* Refactor Client & Add Retries

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>

* Add Tests

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>

* Catch a few missed DoRequest callsites

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>

---------

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>
2023-03-13 18:59:20 -04:00
Russell Troxel
f1d82200ca
feat(add): Add indexer statistics to prowlarr collector (#98) 2023-03-05 18:51:03 -05:00
pixxon
35835b5650
allow apikey to be set from file (#91) 2023-03-03 23:24:24 -05:00
Russell Troxel
a2b6f155e2
feat(add): Readarr Support (#97) 2023-03-03 23:08:00 -05:00