Skip to content

Commit

Permalink
Add source to email subject.
Browse files Browse the repository at this point in the history
Will allow de duping in PagerDuty using email integration.

A minimal work around for librato#22.
  • Loading branch information
Geoff Clitheroe committed Jul 5, 2013
1 parent 0f26410 commit e25abce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/mail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def mail_message
mail = ::Mail.new
mail.from 'Librato Metrics <[email protected]>'
mail.to settings[:addresses].to_s.split(/,/).map { |a| a.strip }
mail.subject %{[Librato Metrics] Metric #{payload[:metric][:name]} has triggered an alert!}
mail.subject %{[Librato Metrics] Metric #{payload[:metric][:name]} source #{payload[:measurement][:source]} has triggered an alert!}

text = text_email
html = html_email
Expand Down

0 comments on commit e25abce

Please sign in to comment.