Skip to content

Instantly share code, notes, and snippets.

@luisvega
Forked from jswank/queue_checks.json
Created July 18, 2016 22:00
Show Gist options
  • Save luisvega/cac123a12988fb96893439229c59d592 to your computer and use it in GitHub Desktop.
Save luisvega/cac123a12988fb96893439229c59d592 to your computer and use it in GitHub Desktop.
Example Sensu check, which only alerts after 10 failures on a 60 second interval, and won't alert on nights or weekends.
{
"checks": {
"noisy_queue_check": {
"handler": "default",
"command": "/etc/sensu/plugins/check-queue-length.rb",
"interval": 60,
"refresh": 60,
"occurrences": 10,
"subscribers": [
"workers"
],
"subdue": {
"start": "22:00-05:00",
"end": "06:00-05:00",
"days": [
"saturday",
"sunday"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment