Skip to content

Add update_message field to SlackConfig for VMAlertmanagerConfig CRD (introduced by alertmanager v0.32.0) #2064

Closed

Description

@megative

Summary

Alertmanager v0.32.0
(released 2026-04-08) introduced update_message: true for Slack receivers.

Instead of sending a separate resolved message, alertmanager stores the Slack
message timestamp and edits the original message in-place when alert status changes.

Result: 100 alerts → 100 Slack messages total instead of 200.
Same behaviour as Grafana OnCall/IRM and PagerDuty already have.

Upstream PRs:


Problem

VMAlertmanagerConfig's SlackConfig struct does not have update_message field.

The only current workaround is using configRawYaml / configSecret directly on
VMAlertmanager, which bypasses CRD-based config management entirely.


Requested changes

Add update_message field to SlackConfig struct in VMAlertmanagerConfig


Example config (currently only works via configRawYaml workaround)

apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAlertmanagerConfig
metadata:
  name: slack-notify
  namespace: monitoring
spec:
  receivers:
    - name: slack
      slack_configs:
        - channel: '#alerts'
          send_resolved: true
          update_message: true   # <-- new field
          api_url:
            name: slack-secret
            key: token
          title: '{{ .GroupLabels.alertname }} - {{ .Status | toUpper }}'
          text: |
            {{ if eq .Status "firing" }}🔥 *{{ .Alerts.Firing | len }} alert(s) FIRING*
            {{ else }}✅ *All alerts RESOLVED*{{ end }}
          color: '{{ if eq .Status "firing" }}danger{{ else }}good{{ end }}'
  route:
    receiver: slack

Requirements for update_message to work

  • api_url must point to https://slack.com/api/chat.postMessage (not a webhook URL)
  • Bot Token (xoxb-...) with a scope chat:write

Activity

  1. added a commit that references this issue on Apr 14, 2026
    712d4d9
  2. added 2 commits that reference this issue on Apr 15, 2026
    4df44ae
    2d9c063
  3. added
    waiting for release
    on Apr 15, 2026
  4. removed
    waiting for release
    on Apr 22, 2026
  5. AndrewChubatiuk commented on Apr 22, 2026

    @AndrewChubatiuk
    Contributor

    slack receiver's update_message field is available in operator v0.69.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions