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.
You can get the the total size of the dbase InfluxDb usage statistics - Store - InfluxData Community from the _internal database.
For best results, InfluxDB servers must have a minimum of 1000 IOPS on storage to ensure recovery and availability. We recommend at least 2000 IOPS for rapid recovery of cluster data nodes after downtime.
Is there any limit to the amount of data that can be stored in InfluxDB? There are no systemic limits to the amount of data an individual instance can hold. Also the storage engine is very efficient (3 bytes per float or integer value). Data is naturally sharded by time so old data is not touched on most queries.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With