Commit 477f546
authored
fix(metrics): exponential buckets for snapshot byte histograms (#2651)
The SDK's default explicit-bucket boundaries are `[0, 5, 10, 25, 50, 75,
100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000]` (tuned for ms). The
per-snapshot byte histograms record values up to tens of GiB, so every
observation falls into `+Inf` and `histogram_quantile()` returns no
useful signal.
Adds a `View` matching `orchestrator.sandbox.snapshot.*` histograms with
unit `{By}` and routes them to
`AggregationBase2ExponentialHistogram{MaxSize: 160, MaxScale: 20}` so
buckets auto-scale across the recorded range.
Affected:
- `orchestrator.sandbox.snapshot.diff.bytes`
- `orchestrator.sandbox.snapshot.total.bytes`1 parent 4480f61 commit 477f546
1 file changed
Lines changed: 20 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
56 | 75 | | |
57 | 76 | | |
58 | 77 | | |
| |||
72 | 91 | | |
73 | 92 | | |
74 | 93 | | |
| 94 | + | |
75 | 95 | | |
76 | 96 | | |
77 | 97 | | |
0 commit comments