Skip to main content

Slack

If you want to enable Slack, provide either a webhook URL or a bot token with channel

Webhook mode:

ParameterDescriptionRequired
alert.slack.webhookSlack webhook URLYes
alert.slack.titleCustomized title in slack messageNo
alert.slack.textCustomized text in slack messageNo

Bot Token mode:

ParameterDescriptionRequired
alert.slack.tokenSlack bot token (xoxb-...)Yes
alert.slack.channelChannel to post to (e.g. #alerts)Yes
alert.slack.titleCustomized title in slack messageNo
alert.slack.textCustomized text in slack messageNo

Example (Webhook)

apiVersion: v1
kind: Namespace
metadata:
name: kwatch
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kwatch
namespace: kwatch
data:
config.yaml: |
alert:
slack:
webhook: WEBHOOK_URL
title: "optional customized title"
text: "optional customized text"

Example (Bot Token)

apiVersion: v1
kind: Namespace
metadata:
name: kwatch
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kwatch
namespace: kwatch
data:
config.yaml: |
alert:
slack:
token: xoxb-your-token
channel: "#alerts"
title: "optional customized title"
text: "optional customized text"

Screenshot