Skip to main content

Slack

Slack connections enable sending notifications, alerts, and messages to Slack channels.

Used By

FieldDescriptionScheme
channel*

The channel to send messages to, in Cxxxxxxxxxx format

string

token*

Slack app's API bot token (starts with xoxb-)

EnvVar

botName

Bot name displayed in messages

color

Message left-hand border color

good | warning | danger | hex color code
icon

Bot icon as emoji or image URL

emoji or URL

threadTS

Parent message timestamp to send as thread reply

title

Prepended text above the message

Example

slack-connection.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Connection
metadata:
name: slack-alerts
spec:
slack:
token:
valueFrom:
secretKeyRef:
name: slack-credentials
key: BOT_TOKEN
channel: C0123456789
botName: Mission Control
icon: ":robot_face:"

Next Steps