Linux

Where Is Grafana Data Stored?

Grafana on Debian and RPM installs stores its database at /var/lib/grafana/grafana.db. Config, plugins, and logs are in fixed system paths.

Last updated

Package installs use /var/lib/grafana/grafana.db for SQLite storage and /etc/grafana/grafana.ini for config. Plugins are in /var/lib/grafana/plugins and logs are in /var/log/grafana/grafana.log. Binary installs use data/ under the working dir instead.

Paths can be overridden in the service env file and startup settings. Confirm the live value in config and the service file since admins change defaults.

Where Grafana stores this, by platform

Linux
/var/lib/grafana/grafana.db

Config is /etc/grafana/grafana.ini. Plugins are /var/lib/grafana/plugins. Logs are /var/log/grafana/. Env file is /etc/default/grafana-server. Stop the service before copying grafana.db.

Frequently asked questions

How do I confirm paths on a package install?

Read /etc/grafana/grafana.ini and /etc/default/grafana-server for DATA_DIR and LOG_DIR. The systemd unit passes them as cfg paths. Binary installs use conf/defaults.ini as reference only.

What should I back up?

Copy grafana.ini, the grafana.db file, and the plugins folder. Provisioning files and external databases need separate handling. Confirm the live value in config when MySQL or Postgres replaces SQLite.

Notice an outdated path? Let us know.