Grafana-PD Page - Storage Capacity Duplicate Calculation

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

Original topic: Grafana-PD页面-Storage capacity 重复计算

| username: 大飞哥online

The Grafana-PD page’s Storage capacity is being double-counted for multiple TiKVs on a single physical machine. Can this be optimized?

| username: TiDB_C罗 | Original post link

The expression in Grafana is simply sum(pd_cluster_status{type=“storage_capacity”}). If you want to modify it, you can get the number of TiKV instances and then divide the total capacity by the number of TiKV instances.

| username: zhanggame1 | Original post link

Support

| username: 大飞哥online | Original post link

In practice, it’s not always the case that there is only one TiKV per physical machine, so redundant calculations are still necessary.

| username: cassblanca | Original post link

Grafana expressions can be customized, right?

| username: 大飞哥online | Original post link

You can modify it yourself.