Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure header on Prometheus Remote Write sink #22613

Open
Shuricky opened this issue Mar 7, 2025 · 0 comments
Open

Configure header on Prometheus Remote Write sink #22613

Shuricky opened this issue Mar 7, 2025 · 0 comments
Labels
type: feature A value-adding code addition that introduce new functionality.

Comments

@Shuricky
Copy link

Shuricky commented Mar 7, 2025

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

Currently on the prometheus remote write sink there is no way to stamp custom HTTP headers. The only header that you can stamp is X-Scope-OrgID using the tenant_id config.

For comparison, the HTTP sink does allow configuring custom headers.

Proposal

Create a new field on the prometheus remote write sink called headers that will contain one or more header name to header value mappings. For example:

sinks:
  my_sink_id:
    type: prometheus_remote_write
    inputs:
      - my-source-or-transform-id
    tenant_id: my-domain
    header:
      "header-name": header-value
@Shuricky Shuricky added the type: feature A value-adding code addition that introduce new functionality. label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

1 participant