Skip to content

Feat[OBE-12884] - Add tenant_header option to prometheus_remote_write sink - #181

Open
yoonlee-s1 wants to merge 1 commit into
masterfrom
yl-rw-tenant-header
Open

yoonlee-s1 wants to merge 1 commit into
masterfrom
yl-rw-tenant-header

Conversation

@yoonlee-s1

@yoonlee-s1 yoonlee-s1 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Why

Thanos Receive for the Metrics Store (OBIN-1912, OBE-12884) reads the tenant from TENANT_ID, but this sink always sent X-Scope-OrgID.

What changed

  • New tenant_header option, defaulting to X-Scope-OrgID. Invalid names fail at build time.
  • Tests, docs and a changelog entry.

Validation

  • 10 remote_write unit tests pass.
  • A local run with tenant_header: TENANT_ID landed in the Metrics Store test tenant.
  • Clippy and the generated-docs check weren't run.

🤖 Generated with Claude Code

… sink

The sink always sent tenant_id as X-Scope-OrgID. The Metrics Store Thanos
receivers (OBIN-1912, variant 2) read the tenant from TENANT_ID, so the
header name is now configurable. It defaults to X-Scope-OrgID, and an
invalid name fails at sink build time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yoonlee-s1 yoonlee-s1 changed the title Feat[OBE-12884] - Add tenant_header option to prometheus_remote_write… Feat[OBE-12884] - Add tenant_header option to prometheus_remote_write sink Nov 4, 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