Export SabNZBd stats to InfluxDB
10K+
This script will query SABnzbd to pull basic stats and store them in influxdb. Stay tuned for further additions!
Available as a docker image on dockerhub (https://hub.docker.com/r/benjsec/sabnzbd-influxdb-export)
Parameters can either be set at the commandline or by environment variable. If both are use the commandline parameters take presedence.
| CommandLine | Environment | Notes | Default |
|---|---|---|---|
| --interval | INTERVAL | In seconds | 5 |
| --sabnzbdwebprotocol | SABNZBD_PROTOCOL | http/https | http |
| --sabnzbdhost | SABNZBD_HOST | localhost | |
| --sabnzbdport | SABNZBD_PORT | 8080 | |
| --sabnzbdapikey | SABNZBD_API_KEY | empty | |
| --influxdbhost | INFLUXDB_HOST | localhost | |
| --influxdbport | INFLUXDB_PORT | 8086 | |
| --influxdbuser | INFLUXDB_USER | empty | |
| --influxdbpassword | INFLUXDB_PASSWORD | empty | |
| --influxdbdatabase | INFLUXDB_DATABASE | sabnzbd |
sabnzbd_influx:
image: benjsec/sabnzbd-influxdb-export
hostname: sabnzb-influx
environment:
SABNZBD_HOST: sabnzbd_1
SABNZBD_PORT: 8080
SABNZBD_API_KEY: ...
INFLUXDB_HOST: influxdb_1
INFLUXDB_PORT: 8086
restart: unless-stopped
With the data exported to influxdb, you can create some useful stats/graphs in graphing tools such as grafana (http://grafana.org/)

Content type
Image
Digest
Size
20.5 MB
Last updated
over 7 years ago
docker pull benjsec/sabnzbd-influxdb-export