Commit 69cdd54
committed
feat(test): add LatencyHarness for histogram / counter deltas
Introduce common.LatencyHarness alongside KarpenterMetricsPoller. The
harness scrapes /metrics at phase start and stop, then reduces per-series
histogram bucket deltas into percentile stats (P50/P90/P95/P99, plus
bucket truncation rate) and counter deltas over the observation window.
The scrape helper is shared with KarpenterMetricsPoller (previously the
poller inlined the API-server pod-proxy fetch + parse). Both callers now
funnel through scrapeKarpenterMetricFamilies.
Includes common.LatencySidecar (JSON schema for the artifact written
alongside PerformanceReport when OUTPUT_DIR is set) and
common.WriteLatencySidecar so performance-suite specs share one on-disk
shape rather than each declaring its own.1 parent d1aacae commit 69cdd54
4 files changed
Lines changed: 745 additions & 13 deletions
File tree
- test/pkg/environment/common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
| |||
211 | 208 | | |
212 | 209 | | |
213 | 210 | | |
214 | | - | |
| 211 | + | |
215 | 212 | | |
216 | | - | |
| 213 | + | |
217 | 214 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | 215 | | |
226 | 216 | | |
227 | | - | |
228 | 217 | | |
229 | 218 | | |
230 | 219 | | |
| |||
0 commit comments