Skip to content

api: add post_updates_to_thread to VMAlertmanagerConfig Slack receiver - #2580

Draft
sebastien-glon-cko wants to merge 2 commits into
VictoriaMetrics:masterfrom
sebastien-glon-cko:vmalertmanagerconfig-slack-post-updates-to-thread
Draft

api: add post_updates_to_thread to VMAlertmanagerConfig Slack receiver#2580
sebastien-glon-cko wants to merge 2 commits into
VictoriaMetrics:masterfrom
sebastien-glon-cko:vmalertmanagerconfig-slack-post-updates-to-thread

Conversation

@sebastien-glon-cko

@sebastien-glon-cko sebastien-glon-cko commented Sep 3, 2026

Copy link
Copy Markdown

Describe Your Changes

Adds the upcoming alertmanager slack_configs option post_updates_to_thread to the VMAlertmanagerConfig Slack receiver, following the exact same pattern as update_message:

  • api/operator/v1beta1: new optional post_updates_to_thread (*bool) field on SlackConfig, plus regenerated deepcopy, CRDs and docs/api.md.
  • factory/vmalertmanager/config.go: render the key into the generated alertmanager configuration only when set.
  • Extended the existing Slack receiver test to cover the new field.

When enabled, alertmanager posts subsequent notifications for an alert group (resolved, repeats) as replies in the thread of the initial Slack message instead of new channel messages; combined with update_message, the initial message is updated in place and a reply is also posted to its thread.

Note: this depends on the upstream alertmanager feature prometheus/alertmanager#5540 (targeting v0.35.0), which is still under review — marking this PR as draft until it lands. Opening it early so the operator side is ready, as was done for update_message.

Checklist

  • Implementation is added
  • Tests are added (go test ./internal/controller/operator/factory/vmalertmanager/... and api module tests pass)
  • Documentation is regenerated (make docs)
  • CHANGELOG entry added

🤖 Generated with Claude Code

Exposes the upcoming alertmanager slack_configs option
post_updates_to_thread (prometheus/alertmanager#5540), which posts
subsequent notifications for an alert group as replies in the thread of
the initial Slack message. Follows the same pattern as update_message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant