Skip to content

tcheronneau/homers

Repository files navigation

HOMERS

This project has the purposed to be a replacement for Varken.
Since InfluxDB is not a good option for me, I decided to use prometheus and to build an exporter.

The project is still in early stage and a lot can still change.

image

Getting Started

The easiest way to start the project is to use docker.
Image can be found at Docker Hub.

docker run -d -p 8000:8000 -v ./config.toml:/app/config.toml mcth/homers

You can either use configuration file or environment variables.
Each config key has a correspondent environment variable.
Example: config.toml:

[http]
port=8000
address="0.0.0.0"
[sonarr.main]
address="http://localhost:8989"
apikey=""

[sonarr.second]
address="http://localhost:7979"
apikey=""

[tautulli]
address="http://localhost:8181"
apikey=""

[radarr.main]
address="http://localhost:7878"
apikey=""


[overseerr]
address="http://localhost:5055"
apikey=""
requests=200

[plex.main]
address="http://localhost:32400"
token=""

Example: environement:

HOMERS_HTTP_ADDRESS: "0.0.0.0"
HOMERS_SONARR_MAIN_ADDRESS: "http://localhost:8989"
HOMERS_SONARR_MAIN_APIKEY: ""

For overseerr you can customize the number of requests you want to pull. Default is 20.

Multi instances

There can be multi instances of Sonarr and Radarr (does not really make sense for the others).
That's why you need to put a identifier for those services in the config file.

Building the project

To build the project you need to have cargo installed.
Then you can run cargo build --release.

Alternatively you can also use nix.
To build the project using nix, you can run nix build .#.
And for the docker image (not used anymore for the current build):

nix build .#docker
docker load < ./result

Advancement

So far it's not doing much.
[X] Retrieve Sonarr today's calendar
[X] Retrieve Tautulli activity
[X] Retrieve Tautulli library information
[X] Retrieve Overseerr requests
[X] Retrieve missing episodes from sonarr
[X] Retrieve watch information from tautulli
[ ] Retrieve watch information from plex (in progress available in dev tag)
[ ] Retrieve watch information from jellyfin
[ ] Connect to ombi (I'm not using it but if required could do)
[ ] Other

Roadmap

The point is to at least support what Varken was doing. Grafana dashboard example can be found at Grafana.

Acknowledgments

Since it's pretty much my first Rust project the code is far from perfect.
It's heavily inspired from the work of Lars Strojny that's provide a really good example of exporter in rust.