#Data retention with prometheus

1 messages · Page 1 of 1 (latest)

inner minnow
#

Hello,

I have some questions about prometheus in docker-compose mode for harvest.

  • Which is the default data retention?
  • Which is the best practice for data retention? (I remember some discussions where prometheus was not the right choice for storing >1 year data)

Thanks!

topaz sigil
#

hi @inner minnow Prometheus's default data retention can be found at runtime via http://:9090$prom-ip/status
unless it was changed, the compose workflow should be 15d

inner minnow
#

Currently I set up 90d via prom-stack.yml, I'll read further the above discussion, thanks

vagrant spindle
#

To avoid Prometheus from collecting the same counters repeatedly, you can adjust the scrape_interval parameter in this file: https://github.com/NetApp/harvest/blob/main/container/prometheus/prometheus.yml#L2. It is recommended to increase the duration to be less than a minute (since the performance counter poll schedule is one minute). This way, you can reduce the frequency of data scraping and improve the efficiency of Prometheus.

inner minnow
#

@vagrant spindle you mean to increase scrape_interval, or decrease? Default is 1m if I'm right