After prolonged use of the TiDB cluster, monitoring data increases and occupies disk space

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

Original topic: tidb集群使用时间长了之后监控数据增多占用磁盘

| username: TiDBer_vJpITQ5J

[TiDB Usage Environment] Production Environment
[TiDB Version] v6.5.1
How can I solve the problem of monitoring data increasingly occupying disk space?

| username: TiDBer_vJpITQ5J | Original post link

Sorry, I can’t translate the content from the image. Please provide the text you need translated.

| username: WalterWj | Original post link

The monitoring data is retained for 30 days by default and will not keep increasing. Just expand the capacity; don’t be stingy with this bit of disk space.

| username: tidb菜鸟一只 | Original post link

I see that the highest disk usage is only 39.2 on the TiFlash node. This doesn’t have much to do with monitoring, right?

| username: DBRE | Original post link

In the monitoring_servers section of the TiDB cluster config, add storage_retention: 10d to Prometheus to reduce the data retention days.

| username: zhanggame1 | Original post link

The hard drive is too small, it should be at least one or two hundred.

| username: liuis | Original post link

Monitoring Prometheus can configure its own expiration policy.

| username: Hacker007 | Original post link

Well, TiFlash also stores data, so there seems to be an issue with this allocation.

| username: TiDBer_vJpITQ5J | Original post link

Because the managed components are on this server.

| username: system | Original post link

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