Slack
Slack
Post alerts to a channel with the triggering chart attached.
Uses an incoming webhook URL. The message includes the monitor name, the value, the threshold and a rendered chart.
cURL
curl -X POST https://api.logstreem.com/v1/notifiers \
-H "Authorization: Bearer $LOGSTREEM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Platform alerts",
"type": "slack",
"config": {
"url": "https://hooks.slack.com/services/T000/B000/XXXX",
"mention": "@platform-oncall"
}
}'| Config | Required | Note |
|---|---|---|
url | Yes | Incoming webhook URL. The channel is fixed by the webhook |
mention | No | Prepended on alert, omitted on resolve |
include_chart | No | Default true. A PNG of the triggering window |
Mention on alert, not on resolve
That is the default and it is deliberate. Being @-mentioned to be told something is fine is how a channel gets muted.