prometheus / prometheus/alertmanager
Feature request: Support Slack Attachments in alert templates
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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