Big usage of space by tsm files

Hi,

I need assistance with tsm files usage.

Every couple of months, I have disk space usage problems due to influxdb tsm files.
These files are normally deleted and grafana restarted and everything works as expected until next time the disk space is full again.

root@qsdmoifd20701v (/var/lib/influxdb/data/telegraf228/autogen)# ll
total 4
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1001
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1017
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1033
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1049
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1065
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1082
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1099
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1116
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1133
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1150
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1167
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1184
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1201
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1218
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1235
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1252
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1269
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1286
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1303
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1320
drwxr-xr-x. 2 influxdb influxdb 4096 Jun 12 12:46 1337
drwxr-xr-x. 2 influxdb influxdb   24 Jun 12 12:46 1352
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1358
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1375
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1389
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1403
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1417
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1431
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1445
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1459
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1473
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1487
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1501
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1515
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1530
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1545
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1560
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1575
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1590
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1605
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1620
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1635
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1650
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1665
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 1680
drwxr-xr-x. 2 influxdb influxdb  148 Jun 12 13:02 1695
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 178
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 189
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 203
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 217
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 231
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 245
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 259
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 276
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 292
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 308
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 324
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 340
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 356
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 372
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 388
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 404
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 420
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 436
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 452
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 468
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 484
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 500
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 516
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 532
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 548
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 564
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 581
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 598
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 615
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 632
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 649
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 666
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 683
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 700
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 717
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 734
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 751
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 768
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 785
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 802
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 819
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 830
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 850
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 865
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 880
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 895
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 910
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 925
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 940
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 955
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 970
drwxr-xr-x. 2 influxdb influxdb   55 Jun 12 12:46 985

root@qsdmoifd20701v (/var/lib/influxdb/data/telegraf228/autogen/985)# ll
total 53196
-rw-r--r--. 1 influxdb influxdb 54463653 Jul 29  2019 000000031-000000002.tsm
-rw-r--r--. 1 influxdb influxdb     5894 Jun 10 01:36 fields.idx

From what I read here and there, it seems these files can be configured to not exceed some time period and size.

Could anyone one point me out what can be done or assist me with this?

Thank you very much.

Configure retention policy for your data - https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#retention-policy-rp

I would recommend InfluxDB community - that is InfluxDB related and not Grafana relatated question.

Thanks for the feedback, I will check it and sorry for the inconvenience.