This exports metrics from Tautulli for use in Prometheus.
This is based HEAVILY off of the HAProxy exporter created by the Prometheus Authors. For original license information see that project here.
I recommend running this in a Docker container. Like this:
docker run -e "TAUTULLI_API_KEY=yourapikey" -e "TAUTULLI_URI=http://127.0.0.1:8181" nwalke/tautulli_exporter
Note that you won't want to set the SERVE_PORT
environment variable if running with Docker. You'll just map it to a different local port if you need to like 9999:9487
.
But you can also just run one of the binaries from the releases page like so:
TAUTULLI_API_KEY="yourapikey" TAUTULLI_URI="http://127.0.0.1:8181" ./tautulli_exporter-linux-amd64
Or if you want to run with your local Go install:
TAUTULLI_API_KEY="yourapikey" TAUTULLI_URI="http://127.0.0.1:8181" go run tautulli_exporter.go
You can configure this exporter using the following environment variables:
TAUTULLI_API_KEY
- required - Set this to your API key for TautulliTAUTULLI_URI
- Set this to your Tautulli address, including port number (defaults tohttp://127.0.0.1:8181
)TAUTULLI_SSL_VERIFY
- Set this totrue
if you want the exporter to validate your Tautulli SSL set upTAUTULLI_TIMEOUT
- Set this to the timeout the exporter should use for scraping Tautulli (defaults to five seconds)SERVE_PORT
- The port this exporter should serve on (defaults to9487
)