prometheus / prometheus/alertmanager

notify.DeepCopyWithTemplate edge cases

Open
#5,012 3 comments 0 reactions 1 assignee View on GitHub

@TheMeier is already working on this.

Since Feb 13, 2026.

Dominant language
Go
Stars
8.6k
Forks
2.5k
Avg merge
2d 6h
Merged PRs (30d)
61

Description

What did you do?

Input like "{}:{alertname=\"test1\"}" trips up notify.DeepCopyWithTemplate

What did you expect to see?

passing "{}:{alertname=\"test1\"}" into notify.DeepCopyWithTemplate to just return the string

What did you see instead? Under which circumstances?

passing "{}:{alertname=\"test1\"}" into notify.DeepCopyWithTemplate returns interface{} nil

System information

Irrelevant

Alertmanager version
current main branch
Alertmanager configuration file
Irrelevant
Prometheus version
Irrelevant
Prometheus configuration file
Irrelevant
Logs
Irrelevant

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.