Skip to content

feat(metrics): Make the exporter flush interval configurable - #821

Closed
lcian wants to merge 1 commit into
mainfrom
lcian/feat/metrics-flush-interval
Closed

lcian wants to merge 1 commit into
mainfrom
lcian/feat/metrics-flush-interval

Conversation

@lcian

@lcian lcian commented Nov 24, 2026

Copy link
Copy Markdown
Member

The DogStatsD exporter flushes metrics every 10 seconds, which is too coarse when we need finer-grained gauge snapshots, for example during load tests. A new flush_interval metrics setting (OS__METRICS__FLUSH_INTERVAL, e.g. 1s) sets this interval, and the default stays at 10 seconds.

Add a flush_interval setting (OS__METRICS__FLUSH_INTERVAL) to MetricsConfig so gauge
snapshots can be exported more often than the DogStatsD default of 10 seconds. The
default stays at 10s, and a zero interval is rejected at init.
@github-actions

Copy link
Copy Markdown

Semver Impact of This PR

⚪ None (no workspace changed)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR does not change any workspace, so it will not appear in any changelog.


🤖 This preview updates automatically when you update the PR.

@lcian
lcian marked this pull request as ready for review November 24, 2026 09:38
@lcian
lcian requested a review from a team as a code owner November 24, 2026 09:38
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 30.76923% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.69%. Comparing base (42f7cef) to head (b689099).

Files with missing lines Patch % Lines
objectstore-metrics/src/lib.rs 30.76% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #821      +/-   ##
==========================================
- Coverage   91.72%   91.69%   -0.03%     
==========================================
  Files         122      122              
  Lines       24679    24692      +13     
==========================================
+ Hits        22637    22642       +5     
- Misses       2042     2050       +8     
Components Coverage Δ
Rust Backend 94.12% <ø> (ø)
Rust Client 90.69% <ø> (ø)
Python Client 91.75% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lcian lcian closed this Nov 24, 2026
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.

1 participant