google 搜索了好多文档,终于发现了这个靠谱的回答。
https://groups.google.com/forum/#!topic/influxdb/I5eady_Ta5Y
You can see the approximate size of the InfluxDB data directory by running the following query against the `_internal` databases `shard` measurement:
```
select sum(diskBytes) / 1024 / 1024 /1024 from _internal."monitor"."shard" where time > now() - 10s
```
```
select sum(diskBytes) / 1024 / 1024 /1024 from _internal."monitor"."shard" where time > now() - 10s
```
The result will be in gigabytes. You can also see the size per database by adding a `group by "database"`:
```
select sum(diskBytes) / 1024 / 1024 /1024 from _internal."monitor"."shard" where time > now() - 10s group by &#
```
select sum(diskBytes) / 1024 / 1024 /1024 from _internal."monitor"."shard" where time > now() - 10s group by &#