Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InfluxDB storage size on disk

Tags:

influxdb

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.

like image 508
Jaap Weijland Avatar asked Jun 09 '17 09:06

Jaap Weijland


People also ask

How do I see the size of InfluxDB?

You can get the the total size of the dbase InfluxDb usage statistics - Store - InfluxData Community from the _internal database.

How much space does InfluxDB need?

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.

How much data can InfluxDB handle?

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.


1 Answers

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.

like image 135
danny Avatar answered Sep 22 '22 10:09

danny