Skip to content

compactor-scheduler: report queue metrics per lane - #16489

Open
npazosmendez wants to merge 5 commits into
mainfrom
njpm/scheduler-lane-metrics
Open

compactor-scheduler: report queue metrics per lane#16489
npazosmendez wants to merge 5 commits into
mainfrom
njpm/scheduler-lane-metrics

Conversation

@npazosmendez

@npazosmendez npazosmendez commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What this PR does

Adds some per-lane metrics, which will be useful to autoscale per-lane worker fleets.

  • Labels cortex_compactor_scheduler_incomplete_compaction_jobs_bytes by lane (only for lanes that carry compaction work). This plays well with existing dashboard panels and autoscalers, they sum by (compaction_type)
  • Adds a per-lane cortex_compactor_scheduler_lane_pending_jobs_last_empty_timestamp_seconds. Adding a label to the existing metric would not carry the same meaning (we'd have no way to know when all lanes where empty at the same time)

Which issue(s) this PR fixes or relates to

Fixes N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]. If changelog entry is not needed, please add the changelog-not-needed label to the PR.
  • about-versioning.md updated with experimental features.

Adds a lane label to the backlog gauge and a per-lane last-empty timestamp, so
a fleet serving one lane can be sized from its own backlog.
@npazosmendez npazosmendez changed the title compactor: report scheduler queue metrics per lane compactor-scheduler: report queue metrics per lane Aug 27, 2026
@npazosmendez
npazosmendez force-pushed the njpm/scheduler-lane-metrics branch from 73958e7 to a1de138 Compare August 27, 2026 14:04
@npazosmendez
npazosmendez force-pushed the njpm/scheduler-lane-metrics branch from a1de138 to f1c35e2 Compare August 27, 2026 14:06
@npazosmendez
npazosmendez marked this pull request as ready for review August 27, 2026 17:55
@npazosmendez
npazosmendez requested a review from a team as a code owner August 27, 2026 17:55
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