I am trying to check size of db created in influxdb. Where can I find storage folder, or if it is distributed in many places what is the best method to measure size of my db ?
Note: Answer below is for macOS/Linux and was provided before the [windows] tag was added.
In the Data section of the Influx documentation, it is stated:
dir = '/var/lib/influxdb/data'
The directory where InfluxDB stores the data. This directory may be changed.
Note: The default directory for OS X installations is/Users/<username>/.influxdb/data
It is safe to say that this directory contains the base persisted file storage of the database.
As mentioned in the docs, the default data storage directory can be overriden by changing theINFLUXDB_DATA_DIR
environment variable.
Specifically for Windows you will probably find the data path in the influxdb.conf file.
However, this directory does not include the meta data for the Influx instance, like users, databases, retention policies etc., nor stuff like the WAL (write-ahead-log), cache, logs and others. If you're interested in this, the earlier mentioned docs provide insight into this as well.