Influxdb v1 with LibreNMS does not clear old data

Hi, we are using InfluxDB with LibreNMS to provide metrics to Grafana. It was setup based on the following procedure. InfluxDB - LibreNMS Docs

Now after using it for some time there are old .tsm files that are taking a lot of space and the local disk on the device is almost full. Old files are located in the /opt/influxdb/data/librenms/autogen/ folder . From what i understand the default retention policy is forever, need to know how to modify the default policy and is it safe to remove old .tsm files with the rm command.

Thanks

Seems like you’d want to alter the retention policy using the command described here: Manage your database using InfluxQL | InfluxDB OSS v1 Documentation

After changing the policy, it should delete old files per the updated retention policy.

1 Like

thanks for the reply, what about manually deleting the .tsm files ?