influxdb/pkg/metrics
Phil Bracikowski 4e8a3b389b
feat: file store merge metrics (#26615)
* feat(1.x,file_store): port metrics for merge work

This commit ports metrics around merging tsm blocks when executing a
query. These will appear in EXPLAN ANALYZE results. The new information
records the time spent merging blocks, the number of blocks merged,
roughly the number of values merged into the first block of each
ReadBlock call, and the number of times that single calls to ReadBlock
have more than 4 block merges. The multiblock merge is sequential and
might benefit from a tree merge algorithm. The latter stat helps
identify if the engineering effort would be fruitful.

* closes #26614

* chore: switch to a timer for duration printing of times

* chore: rename method

* fix: avoid race and use new atomic primitive
2025-07-18 12:18:37 -07:00
..
context.go Modify context key type 2018-10-16 11:25:33 +09:00
counter.go EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00
counter_test.go EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00
default_registry.go EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00
descriptors.go fix overflow for 32-bit architecture 2017-10-20 10:22:28 -07:00
descriptors_test.go fix overflow for 32-bit architecture 2017-10-20 10:22:28 -07:00
doc.go EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00
group.go EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00
group_registry.go EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00
registry.go fix: address static check warning s1039 (#18135) 2020-05-18 13:55:05 -04:00
registry_test.go EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00
timer.go feat: file store merge metrics (#26615) 2025-07-18 12:18:37 -07:00
timer_test.go EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00