InfluxDB can consume significant amount of disk spaceĀ if you have big number of hosts in your network. To reduce disk space consumption you can disable per host counters and keep only total counters and per subnet counters.
As first step, disable them in FastNetMon’s configuration:
1 2 |
sudo fcli set main influxdb_skip_host_counters enable sudo fcli commit |
Then, you need to clean up old tables.
Open InfluxDB command line client:
1 |
influx |
Open FastNetMon’s table:
1 |
use fastnetmon |
Check available data series:
1 2 3 4 5 6 7 8 9 10 11 12 |
show series; key --- hosts_traffic,host=xx hosts_traffic,host=xx hosts_traffic,host=xx hosts_traffic,host=xx hosts_traffic,host=xx hosts_traffic,host=xx hosts_traffic,host=xx networks_traffic,network=xx/24 total_traffic,direction=other |
Delete all records from hosts_traffic:
1 |
delete from hosts_traffic |
Also, you can remove some old records only:
1 |
delete from hosts_traffic where time > 1000s; |