Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Add source to email subject line, #32

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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