ngosang / restic-exporter

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

Performance improvements for restic-exporter #9

Closed k0ste closed 1 year ago

k0ste commented 1 year ago

Hi, here is some fight with restic cloud-native repo variant (S3) With options, that disables the restic check & restic stats queries - the duration of metrics collecting reduces grammatically

restic_scrape_duration_seconds 137.99019384384155
restic_scrape_duration_seconds 51.43253993988037

-e NO_CHECK="true" -e NO_STATS="true":

restic_scrape_duration_seconds 34.870311975479126
restic_scrape_duration_seconds 16.271262645721436

For "backup is not performed for a time" - the timestamp + meta metrics just enough

Full list of changes:

k0ste commented 1 year ago

Thank you for the changes. I let you some comments. If you make the changes I will publish a release this weekend.

I was made changes and reverts, as you suggested 🙏

ngosang commented 1 year ago

https://github.com/ngosang/restic-exporter/releases/tag/1.2.0