Persistent data

Prometheus and Grafana store their data on the local filesystem, so back up the correct directories to preserve dashboards, alerting rules, and metrics history across reboots.

Prometheus and Grafana store data in the following directories:

  • Prometheus: /var/lib/prometheus
  • Grafana: /var/lib/grafana

These directories are created automatically with correct ownership and SELinux contexts during installation.

To preserve data across system reboots, back up these directories regularly.