Skip to content

Commit

Permalink
Fix prometheus-community#146 (safe limit of 200 characters from group…
Browse files Browse the repository at this point in the history
… label value) (prometheus-community#147)

Signed-off-by: jzajic <jan.zajic@corpus.cz>
  • Loading branch information
jan-zajic authored and rufusnufus committed May 13, 2024
1 parent 0c26d8a commit 17b5b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (r *Receiver) Notify(data *alertmanager.Data, hashJiraLabel bool, updateSum

if r.conf.AddGroupLabels {
for k, v := range data.GroupLabels {
issue.Fields.Labels = append(issue.Fields.Labels, fmt.Sprintf("%s=%q", k, v))
issue.Fields.Labels = append(issue.Fields.Labels, fmt.Sprintf("%s=%.200q", k, v))
}
}

Expand Down

0 comments on commit 17b5b60

Please sign in to comment.