Commit b57e5dc
committed
feat(metrics): add batch_total timer to index_duration histogram
Add a batch_total label to the existing index_duration histogram that
covers the full wall-clock time of each add+index cycle. This makes it
easy to see per-batch throughput at a glance without summing the
individual step histograms (add_process, add_write, index_lookup,
index_process).
Only recorded for batches where actual work is done (blocks not yet
added or indexed), so no-op iterations do not skew the distribution.1 parent 42104cd commit b57e5dc
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | 377 | | |
381 | 378 | | |
382 | 379 | | |
| |||
387 | 384 | | |
388 | 385 | | |
389 | 386 | | |
390 | | - | |
391 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
| |||
0 commit comments