friendlyFriend4000 / prometheus-immich-exporter

A prometheus exporter for immich written in Python. Docker image
https://github.com/immich-app/immich#demo
GNU General Public License v3.0
19 stars 9 forks source link

Immich data resets every 30 days? #11

Closed johnny2678 closed 4 months ago

johnny2678 commented 4 months ago

Hi! Thanks for this container. I've got it all set up and working with Grafana. It works great, but for some reason my data gets reset every 30 days?

I'm a complete prometheus noob so I'm not sure if it's an issue with the way prometheus is set up or this exporter and hoping someone here might be able to give me some pointers on where to look.

Thanks!

Allram commented 4 months ago

You need to set the retention timer for the Prometheus DB in the extra field on UnRaid Docker, or in the docker-compose if you are not using UnRaid.

T.ex: --storage.tsdb.retention.time=1y for a 1 year retention of data

johnny2678 commented 4 months ago

--storage.tsdb.retention.time=1y for a 1 year retention of data

Oh wow, I feel dumb. Wish I had asked this sooner!

Thanks!