Can the monitoring data in the Prometheus directory be deleted directly?

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: prometheus目录的监控数据信息可以直接删吗?

| username: 舞动梦灵

Now we need to delete a large amount of data, several hundred million records, deleting 10,000 records per loop. Suddenly, we found that the directory is giving a disk space warning. Can this directory below be deleted?

| username: MrSylar | Original post link

No, deleting it makes the Prometheus load wal segment process a headache. I suggest modifying Prometheus’s storage.tsdb.retention.time to let it delete itself.

| username: DBRE | Original post link

You can refer to this post for cleanup: prometheus 清数据 - #3,来自 等一分钟 - TiDB 的问答社区

| username: zhanggame1 | Original post link

You can adjust the retention period of the monitoring, and it will be automatically deleted.

| username: 舞动梦灵 | Original post link

Okay, thank you.

| username: wangccsy | Original post link

It’s better to manually delete or confirm it.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.