Skip to content

Deferred point count in metrics - #8415

Merged
JojiiOfficial merged 1 commit into
devfrom
deferred-points-in-metrics
Mar 20, 2026
Merged

JojiiOfficial merged 1 commit into
devfrom
deferred-points-in-metrics

Conversation

@JojiiOfficial

Copy link
Copy Markdown
Member

Depends on #8414

Adds the following new metric to metrics API:

# HELP collection_update_queue_deferred_points number of points currently hidden during read operations as they're not yet optimized
# TYPE collection_update_queue_deferred_points gauge
collection_update_queue_deferred_points{id="benchmark"} 414

Since the deferred point count is located in the UpdateQueue in telemetry, it's also located in the collection_update_queue_ namespace in metrics.

@JojiiOfficial JojiiOfficial added this to the deferred updates milestone Mar 16, 2026
@JojiiOfficial
JojiiOfficial force-pushed the deferred-points-in-metrics branch from 4bd27d3 to d19a189 Compare March 17, 2026 09:48
@JojiiOfficial
JojiiOfficial force-pushed the deferred-points-in-update-queue-info branch from 13d93a9 to b42848c Compare March 17, 2026 09:52
@JojiiOfficial
JojiiOfficial force-pushed the deferred-points-in-metrics branch 2 times, most recently from 94d291f to f00401c Compare March 17, 2026 13:16
@JojiiOfficial
JojiiOfficial force-pushed the deferred-points-in-update-queue-info branch from 96c65ee to 0428cfa Compare March 19, 2026 10:23
@JojiiOfficial
JojiiOfficial force-pushed the deferred-points-in-metrics branch from f00401c to 7d1c435 Compare March 19, 2026 10:25
@JojiiOfficial
JojiiOfficial force-pushed the deferred-points-in-update-queue-info branch from 0428cfa to 781ac69 Compare March 19, 2026 10:35
@JojiiOfficial
JojiiOfficial force-pushed the deferred-points-in-metrics branch 2 times, most recently from 4f157e9 to 839a3b9 Compare March 19, 2026 10:39
Base automatically changed from deferred-points-in-update-queue-info to dev March 19, 2026 14:27
@JojiiOfficial
JojiiOfficial force-pushed the deferred-points-in-metrics branch from 839a3b9 to c55cd4f Compare March 19, 2026 14:28
@coderabbitai

coderabbitai Bot commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 73981ae8-517d-45d5-88a6-53e103693597

📥 Commits

Reviewing files that changed from the base of the PR and between c015b86 and c55cd4f.

📒 Files selected for processing (1)
  • src/common/metrics.rs

📝 Walkthrough

Walkthrough

The changes expand metrics collection in src/common/metrics.rs to track deferred points in update queues. Previously, only the update queue length was aggregated per collection. The PR now also aggregates deferred_points from each shard's update queue and exposes this data through a new Prometheus gauge metric called collection_update_queue_deferred_points. A parallel vector to the existing update_queue_length vector is introduced to store the per-collection deferred points gauge metrics.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • agourlay
  • IvanPleshkov
🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Deferred point count in metrics' directly and clearly summarizes the main change—adding a new metric to track deferred point counts.
Description check ✅ Passed The description is directly related to the changeset, providing clear context about the new metric being added, its purpose, and how it integrates with the existing metrics namespace.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch deferred-points-in-metrics
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@JojiiOfficial
JojiiOfficial merged commit 6425323 into dev Mar 20, 2026
15 checks passed
@JojiiOfficial
JojiiOfficial deleted the deferred-points-in-metrics branch March 20, 2026 11:57
generall pushed a commit that referenced this pull request Mar 26, 2026
KShivendu pushed a commit that referenced this pull request Mar 30, 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.

3 participants