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

Support multi-tenant Mimir Alermanager as external Alertmanager #16411

Open
pgillich opened this issue Feb 23, 2025 · 0 comments
Open

Support multi-tenant Mimir Alermanager as external Alertmanager #16411

pgillich opened this issue Feb 23, 2025 · 0 comments

Comments

@pgillich
Copy link

Is your feature request related to a problem? Please describe.
I'd like to use multi-tenant Mimir Alermanager as external Alertmanager. It's possible to set Mimir Alertmanager URL at ruler.alertmanager_url and other client configs at ruler.alertmanager_client, but unable to set X-Scope-OrgId HTTP header to send tenant information to Mimir Alertmanager.

Describe the solution you'd like
The solution should be similar to ruler.remote_write.add_org_id_header. If ruler.alertmanager_client.add_org_id_header = true, the tenant ID (userID in source code) will be added to the HTTP header. Default value: false, for backward-compatible config.

Additional changes:

  • Automatic tests
  • CLI and Helm config parameter
  • Loki operator support

Describe alternatives you've considered
A list of HTTP header pairs may be set at ruler.alertmanager_client.headers, but the X-Scope-OrgId header will be same for all Loki tenants, which is not a good behavior.

Additional context
https://grafana.com/docs/loki/latest/configure/#ruler

If the solution is accepted, I can implement it.

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

No branches or pull requests

1 participant