Commit d4288a1
committed
dashboard: fix Prometheus TDG moving average
Before this patch, Prometheus average panels (histogram or summary
`metric_sum / metric_count`) were displaying instance runtime average
info. This info is rather useless since, in case of instance lifetime
being longer than several dozens of metrics collect intervals (which
happens often), computed average becomes almost constant. Prometheus
itself advises to use moving average for this.
InfluxDB panels already implement moving averages, so there's no need
to update them.
1. https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations
Closes #2371 parent c0dba2a commit d4288a1
File tree
5 files changed
+17
-11
lines changed- dashboard/panels/tdg
- tests/Prometheus
5 files changed
+17
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18917 | 18917 | | |
18918 | 18918 | | |
18919 | 18919 | | |
18920 | | - | |
| 18920 | + | |
18921 | 18921 | | |
18922 | 18922 | | |
18923 | 18923 | | |
| |||
19004 | 19004 | | |
19005 | 19005 | | |
19006 | 19006 | | |
19007 | | - | |
| 19007 | + | |
19008 | 19008 | | |
19009 | 19009 | | |
19010 | 19010 | | |
| |||
19932 | 19932 | | |
19933 | 19933 | | |
19934 | 19934 | | |
19935 | | - | |
| 19935 | + | |
19936 | 19936 | | |
19937 | 19937 | | |
19938 | 19938 | | |
| |||
20193 | 20193 | | |
20194 | 20194 | | |
20195 | 20195 | | |
20196 | | - | |
| 20196 | + | |
20197 | 20197 | | |
20198 | 20198 | | |
20199 | 20199 | | |
| |||
23385 | 23385 | | |
23386 | 23386 | | |
23387 | 23387 | | |
23388 | | - | |
| 23388 | + | |
23389 | 23389 | | |
23390 | 23390 | | |
23391 | 23391 | | |
| |||
23907 | 23907 | | |
23908 | 23908 | | |
23909 | 23909 | | |
23910 | | - | |
| 23910 | + | |
23911 | 23911 | | |
23912 | 23912 | | |
23913 | 23913 | | |
| |||
24342 | 24342 | | |
24343 | 24343 | | |
24344 | 24344 | | |
24345 | | - | |
| 24345 | + | |
24346 | 24346 | | |
24347 | 24347 | | |
24348 | 24348 | | |
| |||
0 commit comments