PAGER DUTY & EXCEPTION NOTIFIER PLUGINS FOR RAILS.

Serves as a Monitoring aggregation tool

It is easy to set up!

It wakes you up when stuff breaks

Accepts commands from your mobile phone

Escalation policies

On-call scheduling

Auto-escalation

Alerts internationally

RAILS EXCEPTION NOTIFIER

gem 'exception_notification', '~> 4.1.0'gem  'pagerduty''
Rails.application.config.middleware.use ExceptionNotification::Rack,
:email => {
:email_prefix => "[PREFIX] ",
:sender_address => %{"notifier" },
:exception_recipients => %w{exceptions@example.com},
:pd => {
# simple notifier options
}
}
require "pagerduty"
module ExceptionNotifier
Class PdNotifier
def initialize(options)
@pagerduty = Pagerduty.new("0bdcfdacf1b144d7822dfdfa5ed0ab1e")# Service api key
# do something with the options...
end
def call(exception, options={})
@pagerduty.trigger(exception.message, details: { backtrace: exception.backtrace })
end
end
end

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store