Skip to content

Instantly share code, notes, and snippets.

@eskp
Last active December 4, 2017 13:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eskp/e0c534a678619c516018af1f44c4b6a9 to your computer and use it in GitHub Desktop.
Save eskp/e0c534a678619c516018af1f44c4b6a9 to your computer and use it in GitHub Desktop.
alerts='[
{
"status": "resolved",
"labels": {
"alertname": "InstanceHighCpu",
"instance": "dev-foo",
"env": "dev",
"job": "ec2_instances"
},
"annotations": {
"summary": "High CPU Usage on dev-foo",
"description": "CPU usage exceeds threshold"
}
}
]'
curl -XPOST -d”$alerts” http://<alertmanager address here>:9093/api/v1/alerts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment