For some Gauge metrics items, `max` should be used
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
## Enhancement Task
There are one tikv. I killed PD and restarted PD, and put a store.
I see


Now we don't choose a PD instance in grafana.
When PD killed or panic, the prometheus metrics will not be reset, so `sum` maybe wrong for `Gauge`
Contributor guide
Research direction
Start by identifying the Grafana panels and Prometheus queries for the affected Gauge metrics, then reproduce the PD restart scenario described in the issue. Determine which Gauge items should use max rather than sum, and verify that the dashboards show correct values after a PD instance is killed and restarted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, grafana, prometheus
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100