delta()
should not be used in counter
#4489
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
severity/moderate
type/bug
The issue is confirmed as a bug.
Bug Report
According to https://prometheus.io/docs/prometheus/latest/querying/functions/#delta: "delta should only be used with gauges".
But we have some counters that use the delta function which may cause the wrong results. These metrics can be found in
pd.json
.What did you see instead?
Like previous issue: #3561
Another one is the region heartbeat in the test cluster:
What version of PD are you using (
pd-server -V
)?master
The text was updated successfully, but these errors were encountered: