prometheus / prometheus/alertmanager

Feature request: Support Slack Attachments in alert templates

Open
#654 6 comments 20 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component/config component/notify component/templating help wanted kind/enhancement stale
Dominant language
Go
Stars
8.6k
Forks
2.5k
Avg merge
2d 6h
Merged PRs (30d)
61

Description

Hey,

as already discussed in #650 it would be great to support custom Slack Attachments in the alert templates. Right now it's already used but only in a hardcoded way and it's not possible to add additional custom attachments.

This would be really helpful to structure alerts in a better way.

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with notify/impl.go around lines 500-508 and the linked custom alert templates documentation. Trace how Slack alert payloads are assembled and how templates expose notification data. Define the attachment shape and template behavior before implementing support, then verify that custom attachments can be rendered without breaking existing Slack notifications.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.