Where to configure TiDB memory capacity monitoring to 95%

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

Original topic: tidb内存容量监控想改成95%请问在哪配置

| username: tidb狂热爱好者

Where can I configure TiDB memory capacity monitoring to 95%? The Prometheus configuration I modified was overwritten.

| username: Holland | Original post link

How did you change it? This should require modifying the JSON file of Grafana, right?

| username: TiDBer_pkQ5q1l0 | Original post link

Adjust the Prometheus alert rule for NODE_memory_used_more_than_80%.

| username: db_user | Original post link

You need to modify the Prometheus configuration file, and remember to restart after making changes. Do not use reload, as performing a reload operation will revert it to the original file.

| username: tidb狂热爱好者 | Original post link

What I meant is that the modification there is permanent.

| username: WalterWj | Original post link

If you modify the alert rules and maintain your own version, it will be permanent. https://docs.pingcap.com/zh/tidb/dev/customized-monitor-in-tiup-environment#自定义-prometheus-rule