• Stars
    star
    530
  • Rank 83,047 (Top 2 %)
  • Language
    Go
  • License
    MIT License
  • Created over 4 years ago
  • Updated 28 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AIO Prometheus Exporter for Sabnzbd, Bazarr, Prowlarr, Lidarr, Readarr, Radarr, and Sonarr

exportarr

AIO Prometheus Exporter for Sonarr, Radarr, Lidarr, Prowlarr, Readarr, and Sabnzbd

Go Report Card

Note: This exporter will not gather metrics from all apps at once, and instead you an exportarr instance for each app. Be sure to see the examples below for more information.

image

Usage

Docker Compose

See examples in the examples/compose directory.

Kubernetes

See examples in the examples/kubernetes directory.

Docker CLI

Replace $app, $port and $apikey with one of the support apps, port and api key

# PORT must be unique across all exportarr instances
docker run --name exportarr_$app \
  -e PORT=9707 \
  -e URL="http://x.x.x.x:$port" \
  -e APIKEY="$apikey" \
  --restart unless-stopped \
  -p 9707:9707 \
  -d ghcr.io/onedr0p/exportarr:latest $app

Visit http://127.0.0.1:9707/metrics to see the app metrics

CLI

Replace $app, $port and $apikey with one of the support apps, port and api key

./exportarr $app --help

# --port must be unique across all exportarr instances
./exportarr $app \
  --port 9707 \
  --url "http://x.x.x.x:$port" \
  --api-key "$apikey"

Visit http://127.0.0.1:9707/metrics to see the app metrics

Configuration

Environment Variable CLI Flag Description Default Required
PORT --port or -p The port exportarr will listen on
URL --url or -u The full URL to Sonarr, Radarr, or Lidarr
API_KEY --api-key or -a API Key for Sonarr, Radarr or Lidarr
API_KEY_FILE --api-key-file API Key file location for Sonarr, Radarr or Lidarr
CONFIG --config or -c Path to Sonarr, Radarr or Lidarr's config.xml (advanced)
INTERFACE --interface or -i The interface IP exportarr will listen on 0.0.0.0
LOG_LEVEL --log-level or -l Set the default Log Level INFO
DISABLE_SSL_VERIFY --disable-ssl-verify Set to true to disable SSL verification false
AUTH_PASSWORD --auth-password Set to your basic or form auth password
AUTH_USERNAME --auth-username Set to your basic or form auth username
FORM_AUTH --form-auth Use Form Auth instead of basic auth false
ENABLE_ADDITIONAL_METRICS --enable-additional-metrics Set to true to enable gathering of additional metrics (slow) false
ENABLE_UNKNOWN_QUEUE_ITEMS --enable-unknown-queue-items Set to true to enable gathering unknown queue items false
PROWLARR__BACKFILL --backfill Set to true to enable backfill of historical metrics false
PROWLARR__BACKFILL_SINCE_DATE --backfill-since-date Set a date from which to start the backfill 1970-01-01 (epoch)

Prowlarr Backfill

The prowlarr collector is a little different than other collectors as it's hitting an actual "stats" endpoint, collecting counters of events that happened in a small time window, rather than getting all-time statistics like the other collectors. This means that by default, when you start the prowlarr collector, collected stats will start from that moment (all counters will start from zero).

To backill all Prowlarr Data, either use PROWLARR__BACKFILL or --backfill.

Note that the first request can be extremely slow, depending on how long your prowlarr instance has been running. You can also specify a start date to limit the backfill if the backfill is timing out:

PROWLARR__BACKFILL_DATE_SINCE=2023-03-01 or --backfill-date-since=2023-03-01

More Repositories

1

home-ops

Wife approved HomeOps driven by Kubernetes and GitOps using Flux
Shell
1,912
star
2

cluster-template

A template for deploying a Talos Kubernetes cluster including Flux for GitOps
Python
1,757
star
3

containers

My collection of container images
Dockerfile
287
star
4

k3s-gitops-arm

k3s cluster backed by Flux (GitOps) up and running on a cluster of RPi4
Shell
146
star
5

k3s-homeops-ansible

Bootstrap a k3s cluster on top of Ubuntu 20.04
HTML
54
star
6

sops-pre-commit

Sops pre-commit hook
Jinja
41
star
7

home-operations

Highly opinionated Ansible playbooks, Ansible roles, and other things that are used to maintain my home-cluster
Dockerfile
28
star
8

unofficial-builds-for-vyos

Unofficial builds for VyOS™ - Because the cost to get LTS is too damn high for our Home Labs
26
star
9

home-service

My home service stack running on a Beelink EQ12 with Fedora IoT. These podman services are supporting my home infrastructure including, DNS and Kubernetes clusters.
Shell
25
star
10

intel-gpu-exporter

Python
23
star
11

dotfiles

My fish compatible dotfiles managed by chezmoi
Shell
15
star
12

gluctl

The glue that helps maintain a Kubernetes Home Lab
JavaScript
12
star
13

kubanetics

A container with various scripts for Kubernetes
Shell
12
star
14

qbittorrent-prune

Remove torrents from qBittorrent that are reported unregistered by a tracker
Shell
8
star
15

dns-in-a-bottle

AIO container for running bind, blocky and dnsdist
Dockerfile
6
star
16

hass-config

Home Assistant configuration for my home
Python
5
star
17

opnsense-coredns

A CoreDNS FreeBSD build specifically for OPNsense which includes some additional plugins
Dockerfile
5
star
18

qbittorrent-scripts

Python
4
star
19

sonarr-episode-prune

Delete episodes from specified series in Sonarr
Python
4
star
20

containers-mirror

Stop-gap container registry mirror of upstream applications that only use Docker Hub
Dockerfile
4
star
21

radarr-exporter

Prometheus Exporter for Radarr
Go
3
star
22

sonarr-exporter

Prometheus Exporter for Sonarr
Go
3
star
23

opaws

CLI tool to sign into AWS (MFA) accounts using 1Password
Shell
2
star
24

custom-error-pages

My custom error pages for the nginx-ingress controller
HTML
2
star
25

doks-cluster

Testing Flux with Digital Ocean Kubernetes Service
HCL
2
star
26

flux-repository-collection

A collection of various (Bucket|Git|Helm|OCI) Repositories for use with Flux
2
star
27

k3s-staging

Jinja
2
star
28

pi4-cluster-example

Test Flux2 GitOps Cluster
Shell
2
star
29

fcos-build

1
star
30

vyos-config

My VyOS configuration
1
star
31

makejinja-mjfilter-example

Python
1
star
32

draft-on-labels-action

GitHub Action to update a pull request to a draft based on labels
TypeScript
1
star
33

onedr0p.github.io

Support Devin
HTML
1
star
34

onedr0p

1
star
35

.github

1
star
36

container-images-refactor

1
star