Linux

Where Does Collectd Store Configs and RRD Data?

Where Collectd keeps configs and data on Linux servers. Exact folders are covered below. More below.

Last updated

Collectd is system stats with file configs. The config directory holds plugins and intervals. RRD data lands beside it per metric.

Same config plus data means same graphs. Exact paths vary by distro packages. Keep backups of configs plus RRDs together. One without the other restores plugins without history. For moves, stop the daemon first to avoid partial writes during copies. Check the in app storage readout when sizes look wrong on different releases. When in doubt, verify paths inside the app before trusting a remembered folder.

Where Collectd Stats stores this, by platform

Linux
/var/lib/collectd (RRD data, configs in etc)

Plugins live in the Collectd config directory with RRD data beside it. Back up both together stopped. Match releases before restore.

Frequently asked questions

How do I migrate Collectd to a new server?

Back up the Collectd config directory with services stopped, then install the same release on the new server before restore. Plugins follow the config. Mixed releases can refuse old types, so match versions first.

Does Collectd back up metric history?

Yes, in RRD files per plugin when the rrdtool backend is on. The host holds a working copy plus write cache. Graphs rebuild after restore. Export CSVs from frontends for records, since the config directory alone is settings, not history.

Notice an outdated path? Let us know.