Skip to content

feat: unify sketch processor config interface - #58

Merged
zzylol merged 2 commits into
mainfrom
57-unifying-the-interface-between-collector-and-sdk-and-application
Mar 19, 2026
Merged

zzylol merged 2 commits into
mainfrom
57-unifying-the-interface-between-collector-and-sdk-and-application

Conversation

@zzylol

@zzylol zzylol commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • window_duration field: Renamed window_size (countsketch) and window_interval (countminsketch) to window_duration, matching the field name already used by hll/kll/ddsketch
  • Default mode batch: Changed default mode for countsketch and countminsketch from window to batch, matching hll/kll/ddsketch defaults
  • aggregate_by + label_matchers: Added both fields to countsketch and countminsketch configs; countminsketch gets full cross-series aggregation (same model as hll/kll/ddsketch — seriesKey uses only aggregate_by labels, output data points carry only those labels); countsketch gets label_matchers filtering
  • SDK: Noted series_per_sketch in PipelineConfig as benchmark-only

Test plan

  • All countsketch processor tests pass (go test ./processor/countsketchprocessor/...)
  • All countminsketch processor tests pass (go test ./processor/countminsketchprocessor/...)
  • Verify YAML configs load correctly with the renamed window_duration field
  • Smoke-test aggregate_by on countminsketch: two series sharing the same aggregate_by label values should be merged into one sketch

🤖 Generated with Claude Code

…mode, aggregate_by)

- Rename window_size (countsketch) and window_interval (countminsketch) to
  window_duration to match hll/kll/ddsketch naming
- Change default mode for countsketch and countminsketch from window to batch,
  matching hll/kll/ddsketch defaults
- Add aggregate_by and label_matchers to countsketch and countminsketch configs,
  with full cross-series aggregation support implemented in countminsketch
- Note series_per_sketch in SDK PipelineConfig as benchmark-only

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zzylol zzylol linked an issue Mar 19, 2026 that may be closed by this pull request
…y and label_matchers smoke tests

- Fix TestConfigValidate in countsketchprocessor: window_duration validation
  only runs in window mode, so set mode=window before testing the minimum
- Add TestAggregateBy: verifies two series with same aggregate_by label collapse
  to one sketch output data point with only the grouped labels retained
- Add TestLabelMatchers: verifies data points not matching label_matchers are
  excluded from the sketch (sample_count reflects only matching points)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zzylol
zzylol merged commit 9845424 into main Mar 19, 2026
@zzylol
zzylol deleted the 57-unifying-the-interface-between-collector-and-sdk-and-application branch March 19, 2026 18:39
SieDeta pushed a commit that referenced this pull request Apr 17, 2026
…ween-collector-and-sdk-and-application

feat: unify sketch processor config interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unifying the interface between collector and SDK, and application

1 participant