36
votes

All I want is simply to know how much space my InfluxDB database takes on my HDD. The stats() command gives me dozens of numbers but I don't know which one shows what I want.

2

2 Answers

62
votes

Stats output does not contain that information. The size of the directory structure on disk will give that info.

du -sh /var/lib/influxdb/data/<db name>

Where /var/lib/influxdb/data is the data directory defined in influxdb.conf.

0
votes

For InfluxDB 2.0 on MacOS - (for me at least) - the location is ~/.influxdbv2/engine.

Running "du -sh *" will show you the disk usage.