Skip to content

Instantly share code, notes, and snippets.

@smetj
Last active April 18, 2016 21:30
Show Gist options
  • Save smetj/444f981d39f5897741ecc33788f1f3f5 to your computer and use it in GitHub Desktop.
Save smetj/444f981d39f5897741ecc33788f1f3f5 to your computer and use it in GitHub Desktop.
Quis custodiet ipsos custodes: Monitoring a poll-based monitoring solution
modules:
input:
module: wishbone.input.httpserver
fresh:
module: wishbone.flow.fresh
arguments:
timeout: 120
timeout_payload:
service_key: abcdefghijklmnopqrstuvwxyz
event_type: trigger
incident_key: wishbone-instance-1
description: Incoming data stream interrupted
recovery_payload:
service_key: abcdefghijklmnopqrstuvwxyz
event_type: resolve
incident_key: wishbone-instance-1
description: Incoming data stream recovered
json:
module: wishbone.encode.json
pagerduty:
module: wishbone.output.http
arguments:
method: POST
url: https://events.pagerduty.com/generic/2010-04-15/create_event.json
routingtable:
- input.outbox -> fresh.inbox
- fresh.timeout -> json.inbox
- json.outbox -> pagerduty.inbox
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment