Notifications
Notification allows you to receive alerts on a preferred channel when a particular set of events occur.
Category | event | Description |
---|---|---|
Health Check | check.passed | when a previously failing check passes |
check.failed | when a previously passing check fails | |
Component | component.status.<status> | When a component's status changes |
Examples
http-check-passed.yamlevents:
- check.passed
title: Check as {{.check.status}}
template: 'Canary: {{.canary.name}} Message: {{.status.message}} '
filter: "check.type == 'http'"
person_id: d87243c9-3183-4ab9-9df9-c77c8278df11
check-failure.yamlevents:
- check.failed
title: Check as {{.check.status}}
template: 'Canary: {{.canary.name}} Error: {{.status.error}}'
filter: "check.type == 'http'"
custom_services:
- connection: connection://slack://<api-token>@health-check-notifications
name: Slack-health-checks
Spec
Field | Description | Scheme | Required |
---|---|---|---|
events | Events of notification. | []string | true |
title | Title of notification. | string | false |
template | Template of notification. | string | false |
filter | Filter of notification. | string | false |
person_id | Person ID of notification. | uuid | false |
team_id | Team ID of notification. | uuid | false |
properties | Properties of notification. | map[string]string | false |
custom_services | Custom services of notification. | JSON | false |
info
One of person_id
, team_id
or custom_services
is required.
Supported Channels
Mission control uses Shoutrrr under the hood to deliver notifications. Most of the services in the Shoutrrr are supported. Here's the complete list:
Services | URL Format |
---|---|
Bark | bark://devicekey@host |
Discord | discord://token@id |
smtp://username:password@host:port/?from=fromAddress&to=recipient1[,recipient2,...] | |
Gotify | gotify://gotify-host/token |
Google Chat | googlechat://chat.googleapis.com/v1/spaces/FOO/messages?key=bar&token=baz |
IFTTT | ifttt://key/?events=event1[,event2,...]&value1=value1&value2=value2&value3=value3 |
Join | join://shoutrrr:api-key@join/?devices=device1[,device2, ...][&icon=icon][&title=title] |
Mattermost | mattermost://[username@]mattermost-host/token[/channel] |
Matrix | matrix://username:password@host:port/[?rooms=!roomID1[,roomAlias2]] |
Ntfy | ntfy://username:password@ntfy.sh/topic |
OpsGenie | opsgenie://host/token?responders=responder1[,responder2] |
Pushbullet | pushbullet://api-token[/device/#channel/email] |
Pushover | pushover://shoutrrr:apiToken@userKey/?devices=device1[,device2, ...] |
Rocketchat | rocketchat://[username@]rocketchat-host/token[/channel| @recipient] |
Slack | slack://[botname@]token-a/token-b/token-c |
Teams | teams://group@tenant/altId/groupOwner?host=organization.webhook.office.com |
Telegram | telegram://token@telegram?chats=@channel-1[,chat-id-1,...] |
Zulip Chat | zulip://bot-mail:bot-key@zulip-domain/?stream=name-or-id&topic=name |
For more details please visit: https://containrrr.dev/shoutrrr/0.8/services/overview/