Skip to content

Instantly share code, notes, and snippets.

@martinrusev
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save martinrusev/1e04c47e811040e99b9b to your computer and use it in GitHub Desktop.

Select an option

Save martinrusev/1e04c47e811040e99b9b to your computer and use it in GitHub Desktop.
Amon to Pagerduty
{
"trigger": {"to": 1428223320, "from": 1428223286, "average_value": 63.0},
"alert": {"rule_type": "global",
"metric_value": 80,
"metric": "Disk",
"period": 900,
"metric_type": "%",
"above_below": "above"
},
"server" : {"name": "local"}
}
https://events.pagerduty.com/generic/2010-04-15/create_event.json
{
"service_key": "e93facc04764012d7bfb002500d5d1a6",
"incident_key": "disk/local",
"event_type": "trigger",
"description": "Disk > 80% for 15 minutes",
"client": "local",
"details": {
"average_value": 63
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment