Retention Policy

Rpi3,HA 2022.8.7, Influxdb and Grafana.
I want to record temperatures for coming one year.
Presently retention setup is described in the attached upload. What would be the correct figure? Don`t know the difference of “internal” and “Home assistant”.

Internal is the database that tracks the database. You can and (according to Influx) should disable it. However you will lose access to the common (and inaccurate) way of making an InfluxDB size sensor. That’s the sort of metadata it stores. Fortunately there is a more accurate way to do this.

Set the home_assistant database Duration to 365d if you want to keep data for a year.

If you want to disable the internal database add this to the addon configuration in the environmental variables section:

- name: INFLUXDB_MONITOR_STORE_ENABLED
  value: "false"

2 Likes