Skip to content

Commit

Permalink
add pagerduty notifier - add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
prajithp13 committed Aug 21, 2024
1 parent 8c873c2 commit eb736c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/notify/notifier/pagerduty/pagerduty.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (n *Notifier) Notify(ctx context.Context, data *template.Data) error {
return utils.Error(resp.Message)
}

level.Debug(n.logger).Log("msg", "PagerDutyNotifier: send message", "key", key, "type", eventType)
level.Debug(n.logger).Log("msg", "PagerDutyNotifier: send message", "key", key, "type", eventType, labelSet.String())
return nil
}

Expand Down Expand Up @@ -192,8 +192,8 @@ func truncateInRunes(s string, n int) (string, bool) {

func convertKVToCommonLabelSet(cls template.KV) model.LabelSet {
mls := make(model.LabelSet, len(cls))
for _, s := range cls.SortedPairs() {
mls[model.LabelName(s.Name)] = model.LabelValue(s.Value)
for _, l := range cls.SortedPairs() {
mls[model.LabelName(l.Name)] = model.LabelValue(l.Value)
}
return mls
}
Expand Down

0 comments on commit eb736c1

Please sign in to comment.