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

Different org/repo per alert #23

Open
Daniel15 opened this issue Jan 23, 2019 · 3 comments
Open

Different org/repo per alert #23

Daniel15 opened this issue Jan 23, 2019 · 3 comments

Comments

@Daniel15
Copy link

The readme says:

To start the github receiver locally:

docker run -it measurementlab/alertmanager-github-receiver:latest
        -authtoken=$(GITHUB_AUTH_TOKEN) -org=<org> -repo=<repo>

Is it possible to configure the org and repo per alert, or would I need to run multiple instances of the receiver? I want to configure several alerts across several different Github org and repositories, using a single Prometheus instance.

@Daniel15
Copy link
Author

I see that different repos are supported (as per #4) but it looks like the org is still static. Would be good to be able to customize the org too.

@stephen-soltesz
Copy link
Contributor

Hi, @Daniel15, can you say more about the specific use case where this would be helpful? This makes authorization more difficult. While the current version supports personal auth tokens, I would like to move to the Github App auth model which would make arbitrary org routing impossible.

If you're willing to run multiple alertmanager-github-receiver instances, then alertmanager routes could address your use-case today.

@Daniel15
Copy link
Author

can you say more about the specific use case where this would be helpful

@stephen-soltesz - I'm a member of a few Github orgs. I have one Prometheus instance that collects metrics relating to a few of them. It would be nice to have some way to use one Prometheus + one alertmanager + one alertrmanager-github-receiver to handle alerts for all of them.

If you're willing to run multiple alertmanager-github-receiver instances, then alertmanager routes could address your use-case today.

That's probably a reasonable idea... I assume the github-receiver doesn't take much RAM or CPU so running a few instances would be fine. I haven't actually tried it out yet.

While the current version supports personal auth tokens, I would like to move to the Github App auth model which would make arbitrary org routing impossible.

Would that actually make it more difficult? I think you could just authorize the Github App for multiple orgs?

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

2 participants