Comments (10)
How about letting each alert daemon run continuously, and periodically run leader election using Consul itself?
http://www.consul.io/docs/guides/leader-election.html
from consul-alerts.
Oh, I like that! :)
from consul-alerts.
Interesting. The client leader election looks pretty simple and cool.
At the moment, consul-alerts is already aware of which consul node is the leader though it does nothing with that info. Quick fix, It'd just be a simple change in the logic for enabling/disabling health checks (and a new config key) to enable this feature. This solves the immediate issue at hand though we're relying on consul's leader election instead of doing our own.
I do like the idea of consul-alerts having it's own leader-election.
from consul-alerts.
I do like the idea of consul-alerts having it's own leader-election.
Me too. I think it's a simple and robust idea.
from consul-alerts.
Using consul's build in leader election is the perfect way to handle this. Definitely on the right track here.
from consul-alerts.
Hi @darkcrux
I really don't want to push you, but do you know when you could release a new version with this patch?
Because I need it and so I have to know If I should implement something on my side to work-around this issue.
Thanks.
from consul-alerts.
@lyrixx I might have some time this week to hack around this. Aiming to complete this one and the reminder feature.
from consul-alerts.
Leader elections is now in place and is done automatically. Only the leader will send out notifications. Only works for checks and not events though as we may still want to trigger events on specific nodes.
from consul-alerts.
@darkcrux Thanks for this feature ;)
Could you release a new version? thanks.
from consul-alerts.
A new version has been released... can we close this issue?
from consul-alerts.
Related Issues (20)
- Support parametric notification profiles HOT 2
- Disable notifications with consul tags HOT 1
- email notifier: distinct email receivers based on consul service HOT 1
- Checks status "from [empty] to passing/critical"
- docker image does not send http-notification HOT 3
- 200 is not the only code that indicates success
- Config not updating
- Change the default URL where reads the config in consul "/consul-alerts/xxx" for another URL, for example "/consul-alerts-2/xxx"? HOT 1
- INFO[0003] Running for leader election... Error querying Consul agent: Unexpected response code: 403 (Permission denied) INFO[0003] Shutting down watcher --> Exit Code: 1 HOT 1
- Support JWT auth for HTTP notifier HOT 2
- Update docker image.
- (Stale) Reminder doesnt get deleted
- consul-alerts stops working after some time
- Can't connect to https consul endpoint
- Cant download consulalerts 0.6.0 HOT 1
- version display error
- Opsgenie notifier should allow to configure different target address
- http-endpoint-notifier : Possibility to add HTTP headers ?
- 'Running for leader election' repeating
- Incorrect policy given in README HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consul-alerts.