Can I query the size of a database in influx db?

Influx doesn't report its size directly I don't think but something like the following command should do the trick:

sudo du -sh /var/lib/influxdb/data/

It is possible to run that from node-red if you add the command to sudoers so that it doesn't require a password to run.