Skip to content

Filter metrics before control room remote_write#287

Draft
amdove wants to merge 2 commits into
mainfrom
filter-control-room-metrics
Draft

Filter metrics before control room remote_write#287
amdove wants to merge 2 commits into
mainfrom
filter-control-room-metrics

Conversation

@amdove
Copy link
Copy Markdown
Contributor

@amdove amdove commented May 6, 2026

Summary

  • Introduces prometheus.relabel "control_room_filter" between prometheus.relabel "default" and prometheus.remote_write "control_room" in buildAlloyConfig
  • Keeps only the 110 metric names needed by control room alert rules and provisioned dashboards; everything else is dropped before leaving the workload cluster
  • Local workload Mimir remote_write is unchanged — still receives the full metric stream

Test plan

  • just test-lib passes
  • Deploy to a workload and confirm control room Mimir series count drops significantly
  • Confirm alert rules and dashboards still render correctly in control room Grafana

🤖 Generated with Claude Code

amdove and others added 2 commits May 4, 2026 15:02
posit-dev/ptd is public so it cannot call reusable workflows from
internal/private repos. Inline the full workflow directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Introduce prometheus.relabel "control_room_filter" between the default
relabel component and the control room remote_write in buildAlloyConfig.
Only the 110 metric names referenced by control room alert rules and
provisioned dashboards are forwarded; the local workload Mimir remote_write
is unchanged and continues to receive the full metric stream.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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