ngosang / restic-exporter

Prometheus exporter for the Restic backup system
MIT License
79 stars 17 forks source link

[FEATURE] Multiple repo support #6

Closed PovilasID closed 1 year ago

PovilasID commented 1 year ago

Hey,

I have a couple of restic instances backing up to different repos. I am fine with running multiple exporter instances (1 exporter per repo) but it would be nice to get an option a variable in grafan dashboard to merge all data for all/repo1/repo2 to have everything in single view :)

ngosang commented 1 year ago

I prefer to keep it simple. The exporter is very light and you can run several instances. The exported metrics have this format:

restic_check_success{instance="192.168.1.191:8889", job="restic-exporter"}

The current Grafana dashboard will show the metrics from all exporters in a single dashboard. If you want to filter by repository you could add a combo/selector/filter with the instance name.