prometheus operator v0.93.1

AlertmanagerConfig.spec.receivers[].slackConfigs[]

SlackConfig configures notifications via Slack. See https://prometheus.io/docs/alerting/latest/configuration/#slack_config

25 fields
AlertmanagerConfig.spec.receivers[].slackConfigs[] fields and descriptions
Field / TypeDescription
object[]

actions defines a list of Slack actions that are sent with each notification.

  • minItems: 1
  • x-kubernetes-list-type: "atomic"
object

apiURL defines the secret's key that contains the Slack webhook URL. The secret needs to be in the same namespace as the AlertmanagerConfig object and accessible by the Prometheus Operator.

  • x-kubernetes-map-type: "atomic"
callbackId
string

callbackId defines an identifier for the message used in interactive components.

  • minLength: 1
channel
string

channel defines the channel or user to send notifications to.

  • minLength: 1
color
string

color defines the color of the left border of the Slack message attachment. Can be a hex color code (e.g., "#ff0000") or a predefined color name.

  • minLength: 1
fallback
string

fallback defines a plain-text summary of the attachment for clients that don't support attachments.

  • minLength: 1
object[]

fields defines a list of Slack fields that are sent with each notification.

  • minItems: 1
  • x-kubernetes-list-type: "atomic"
footer
string

footer defines small text displayed at the bottom of the message attachment.

  • minLength: 1
object

httpConfig defines the HTTP client configuration.

iconEmoji
string

iconEmoji defines the emoji to use as the bot's avatar (e.g., ":ghost:").

  • minLength: 1
iconURL
string

iconURL defines the URL to an image to use as the bot's avatar.

imageURL
string

imageURL defines the URL to an image file that will be displayed inside the message attachment.

linkNames
boolean

linkNames enables automatic linking of channel names and usernames in the message. When true, @channel and @username will be converted to clickable links.

messageText
string

messageText defines text content of the Slack message. If set, this is sent as the top-level 'text' field in the Slack payload. It requires Alertmanager >= v0.31.0.

  • minLength: 1
string[]

mrkdwnIn defines which fields should be parsed as Slack markdown. Valid values include "pretext", "text", and "fields".

  • minItems: 1
  • x-kubernetes-list-type: "atomic"
pretext
string

pretext defines optional text that appears above the message attachment block.

  • minLength: 1
sendResolved
boolean

sendResolved defines whether or not to notify about resolved alerts.

shortFields
boolean

shortFields determines whether fields are displayed in a compact format. When true, fields are shown side by side when possible.

text
string

text defines the main text content of the Slack message attachment.

  • minLength: 1
thumbURL
string

thumbURL defines the URL to an image file that will be displayed as a thumbnail on the right side of the message attachment.

timeout
string

timeout defines the maximum time to wait for a webhook request to complete, before failing the request and allowing it to be retried. It requires Alertmanager >= v0.30.0.

  • pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$
title
string

title defines the title text displayed in the Slack message attachment.

  • minLength: 1
titleLink
string

titleLink defines the URL that the title will link to when clicked.

updateMessage
boolean

updateMessage enables updating existing Slack messages instead of creating new ones when alert state changes. Please note that Webhook URLs do not support updates. It requires Alertmanager >= v0.32.0.

username
string

username defines the slack bot user name.

  • minLength: 1