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

Prometheus #13

Merged
merged 3 commits into from
Feb 1, 2016
Merged

Prometheus #13

merged 3 commits into from
Feb 1, 2016

Conversation

negzi
Copy link

@negzi negzi commented Jan 26, 2016

This plugin makes it possible to redirect alert messages coming from prometheus to different rooms
it also queues messages when the server is down and sends them when the server is up again.

Negi Fazeli added 2 commits January 25, 2016 15:12
	- The plugin supports resending messages
	 after server recovery.

INITIAL_TIMEOUT = 5
TIMEOUT_INCREMENT = 5
MAX_TIMEOUT = 60 * 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Units on these please e.g. MAX_TIMEOUT_MS

@kegsay
Copy link
Member

kegsay commented Jan 28, 2016

This looks really cool, thanks! Few small comments / queries but this is looking good.

It's worth noting that currently this plugin will accept requests from anyone, whether or not they are actually Prometheus. At worst, this could be a potential spam vector. It might be nice to add in some form of shared secret (as a query parameter) similar to the Jenkins plugin: https://github.com/matrix-org/Matrix-NEB/blob/master/plugins/jenkins.py#L198 - It's a little bit fiddly because you need to store the token somewhere on startup. I don't really mind too much about this, so don't feel like you have to do this in order for this PR to land. I'm more interested in the line comments I've left.

@kegsay
Copy link
Member

kegsay commented Feb 1, 2016

LGTM, thanks!

kegsay added a commit that referenced this pull request Feb 1, 2016
@kegsay kegsay merged commit 7746023 into matrix-org:master Feb 1, 2016
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

Successfully merging this pull request may close these issues.

2 participants