Comments (2)
Imho it depends on how sophisticated this whole thing needs to be.
I think handlers are the right place to query for related events (for example, "I am processing event FOO on host BAR, sensu api - give me all related events") but they are not necessarily the right place to generate the relationship. It could be a standalone process running in the background working off of data in redis and writing back to redis, from where sensu-api could be reading data about "related" events.
Otoh, if relationships are simple ("other events on this host", "other same events on hosts in same region/datacenter/etc"), it might be ok to put all of it into handlers.
Also, have you seen dependencies? https://sensuapp.org/docs/latest/checks We are not using this feature enough, there are a ton of events for which we could do dependencies in order to reduce the number of events that end up being processed by handlers. This only works for simple relationships however.
from sensu_handlers.
Handlers are an easy start to put this because they have all the data they need to answer the question, and they are right there to append the output of the alert with the related_alerts raw text.
Even if we had an out of band process doing the formulation and putting the results in a stash or something, we would still need the related alerts function at the handler level retrieve that stash and stick it in the alert text.
We've talked about this idea forever at yelp, and I would be down for even the simplest implementation (related alerts on the hosts) as a first pass at this.
It does mean increased load on the api :( But I have some other ideas on how to solve that.
from sensu_handlers.
Related Issues (20)
- Develop watchdog handler HOT 6
- Generate an alert if the API query fails HOT 2
- Develop autofixer handler HOT 3
- remove dependency on puppet-omnibus embedded ruby HOT 1
- pagerduty handler can sometimes emit too long of a description, and fail to page, which is bad HOT 1
- Document how to invoke these handlers directly for troubleshooting purposes HOT 3
- aws_prune should only consider "running" instances to be available HOT 6
- Make aws-prune run "out of band" and not as a handler HOT 4
- aws_prune.pp uses cron::d which is a yelpism HOT 1
- Ability to set :context_path for jira handler
- Remove `habitat` from pagerduty event ids in favor of `region` (I guess) HOT 2
- Licensing HOT 2
- Replace fog dependency with aws-sdk HOT 1
- plans for sensu core filtering support? HOT 4
- handler not triggering resolve action for an event transitioned from crit -> warn -> ok HOT 4
- filter alerts with "Execution timed out" in pagerduty and jira handlers HOT 3
- Can someone please help me install these Handlers HOT 3
- Thank you. :) Team based config HOT 2
- When creating a jira ticket, assign it to the on-call person in pagerduty
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 sensu_handlers.