Skip to content

Commit 4f4b322

Browse files
authored
Fix prometheus-community#146 (safe limit of 200 characters from group label value) (prometheus-community#147)
Signed-off-by: jzajic <[email protected]>
1 parent 40a81db commit 4f4b322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/notify/notify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (r *Receiver) Notify(data *alertmanager.Data, hashJiraLabel bool, updateSum
189189

190190
if r.conf.AddGroupLabels {
191191
for k, v := range data.GroupLabels {
192-
issue.Fields.Labels = append(issue.Fields.Labels, fmt.Sprintf("%s=%q", k, v))
192+
issue.Fields.Labels = append(issue.Fields.Labels, fmt.Sprintf("%s=%.200q", k, v))
193193
}
194194
}
195195

0 commit comments

Comments
 (0)