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

Unable to pass multiple apps alerts through from alertmanager #11

Open
nusnewob opened this issue Mar 8, 2021 · 0 comments
Open

Unable to pass multiple apps alerts through from alertmanager #11

nusnewob opened this issue Mar 8, 2021 · 0 comments

Comments

@nusnewob
Copy link

nusnewob commented Mar 8, 2021

I'm trying to setup alertmanager to forward multiple apps errors to Sentry, therefore the webhook url needs to be dynamic, I'm exposing .Labels.sentry_io_app as Sentry <project_id>, see configs below.
However, Alertmanager webhook url parameter doesn't support using template syntax (see issue). Is there any other way to pass <project_id> to the gateway?

Example config

receivers:
- name: team
  webhook_configs:
  - url: 'http://127.0.0.1:9096/{{ .Labels.sentry_io_app }}'
    send_resolved: false
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