Skip to content

Alertmanager multitenant UI with NGINX #4807

Answered by friedrichg
justpalma asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe something like this could help:

location ~ ^/(dev[0-9]+)/alertmanager/?((?<=/).*)?$ {
  proxy_set_header X-Scope-OrgID $1;
  proxy_pass  http://cma-cortex-alertmanager.cortex-aggregator.svc.cluster.local:8080/alertmanager/$2$is_args$args;
}

then the url for alertmanagers is
https://cortex.example.com/dev1/alertmanager
https://cortex.example.com/dev5/alertmanager
etc...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@justpalma
Comment options

Answer selected by friedrichg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants