Skip to content

Make metrics config cleaner#35

Merged
colmsnowplow merged 2 commits intofeat/buffered-data-metricfrom
metrics-tweaks
Sep 10, 2025
Merged

Make metrics config cleaner#35
colmsnowplow merged 2 commits intofeat/buffered-data-metricfrom
metrics-tweaks

Conversation

@colmsnowplow
Copy link

Followup PR to clean up config per this comment.

Because of how the statreceiver is passed to checkpointer, basic ifs were difficult to make cleaner - so landed on a wrapper on initialisation which I think cleans up the implementation across the board.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better!

@colmsnowplow colmsnowplow changed the title Metrics tweaks Make metrics config cleaner Sep 10, 2025
@colmsnowplow colmsnowplow merged commit 015dd4c into feat/buffered-data-metric Sep 10, 2025
1 check passed
colmsnowplow added a commit that referenced this pull request Sep 10, 2025
* Initial metrics implementation for tracking record in memory

* Buffer metrics before sending

* Fix metrics to account for pre-buffer in-memory data

* Add a metric which measures memory backlog

* Use int64 everywhere for recordsInMemory metric

* Use channel instead of atomics to avoid possible contention

* Log warnings if we drop metrics

* Combine the updates to reduce channel traffic overhead

* Reduce channel activity/overhead with a batching mechanic

* Use a smaller channel and log immediately if blocked

* Buffer metrics every second

* Add test of new metrics implementation

* Add config to filter metrics

* Make metrics config cleaner (#35)

* Make metrics config cleaner

* go fmt
@colmsnowplow colmsnowplow deleted the metrics-tweaks branch September 10, 2025 13:02
colmsnowplow added a commit that referenced this pull request Sep 12, 2025
* Initial metrics implementation for tracking record in memory

* Buffer metrics before sending

* Fix metrics to account for pre-buffer in-memory data

* Add a metric which measures memory backlog

* Use int64 everywhere for recordsInMemory metric

* Use channel instead of atomics to avoid possible contention

* Log warnings if we drop metrics

* Combine the updates to reduce channel traffic overhead

* Reduce channel activity/overhead with a batching mechanic

* Use a smaller channel and log immediately if blocked

* Buffer metrics every second

* Add test of new metrics implementation

* Add config to filter metrics

* Make metrics config cleaner (#35)

* Make metrics config cleaner

* go fmt
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.

2 participants