Get the size by checking the disk usage

If you want to know how much space your InfluxDB database takes on your HDD, you can use the disk usage command in Linux:

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

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


Other articles:

How to use bash Environment Variables in Python - part 1

How to use bash Environment Variables in Python - part 2

How to use bash Environment Variables in Python - part 3

How to plot multiple functions on the same figure using Matplotlib