Skip to content

Add metrics for tenant attribution and write requests#300

Open
willh-db wants to merge 2 commits intodatabricks:db_mainfrom
willh-db:attribution-metrics
Open

Add metrics for tenant attribution and write requests#300
willh-db wants to merge 2 commits intodatabricks:db_mainfrom
willh-db:attribution-metrics

Conversation

@willh-db
Copy link
Collaborator

@willh-db willh-db commented Feb 20, 2026

Changes

Three new Prometheus metrics to support the migration from m3coordinator to Thanos-native tenant attribution.

  1. thanos_receive_write_requests_total
    • Tracks all write requests.
    • Labels: code (HTTP status), tenant (from HTTP header)
    • Replaces coordinator_write_success / coordinator_write_errors for SLO tracking
  2. thanos_receive_write_rejected_total
    • Tracks rejected write requests by reason.
    • Labels: reason (write_gate, head_series_limit, request_size, series_limit, samples_limit), tenant (from HTTP header)
    • Replaces coordinator_write_reject for rejection monitoring
  3. thanos_receive_tenant_attributed_total
    • Tracks per-timeseries tenant attribution.
    • Labels: tenant (attributed), source (http_header/label_rules)
    • Provides visibility into how/which tenants are being attributed, whether from explicit HTTP headers or rule-based label matching

Verification

@willh-db willh-db requested a review from yuchen-db February 20, 2026 01:49
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

Comments