Last active
December 4, 2017 13:32
-
-
Save eskp/e0c534a678619c516018af1f44c4b6a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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