Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Monitoring your Rails production Application & Servers

Monitoring your Rails production Application & Servers

Slides from my talk at the Chennai Ruby Meetup about the aspects of monitoring your Rails production application and the various tools and services available to get the job done.

Steve Robinson

July 19, 2014
Tweet

More Decks by Steve Robinson

Other Decks in Programming

Transcript

  1. Keeping an eye on your processes Make sure they are

    running Notify / do stuff when they act abnormally • God • Bluepill • Monit
  2. Get notified when Exceptions occur Track them Get all the

    diagnostic info you need • Errbit • Airbrake • BugSnag • Rollbar Know when it breaks
  3. Make it concise / searchable Rotate regularly (logrotate) Aggregate somewhere

    Use logging wisely! • LogStash + ElasticSearch + Kibana • FluentD • PaperTrailApp
  4. Rev it up without breaking Monitoring & Tracking Response times,

    Throughput, Slow Queries, etc Identify bottlenecks & help scale the app • Bullet, rack­mini­profiler • NewRelic • HoneyBadger
  5. Keep the infrastructure calm Monitor CPU, Memory, Disk IO, Disk

    Usage, Load etc. Detect trends & prevent disasters Setup alerts & notifications • Nagios • Munin • ScoutApp • ServerDensity
  6. Always Remember "If you can not measure it, you can

    not improve it." - Lord Kelvin Your sleep & health is more important than anything else DONT FORGET TO DO STRESS TESTS
  7. • Process Monitoring: – God - http://godrb.com/ – Bluepill -

    https://github.com/bluepill-rb/bluepill – Monit - http://mmonit.com/monit/ • Exception Tracking – Airbrake - https://airbrake.io/ – Errbit - https://github.com/errbit/errbit – Rollbar – http://rollbar.com – BugSnag - http://bugsnag.com • Logging & Aggregation – Lograge - https://github.com/roidrage/lograge – LogStash - http://www.elasticsearch.org/overview/logstash/ – PaperTrailApp - https://papertrailapp.com/ – Loggly - https://www.loggly.com/ – LogEntries - https://logentries.com/ • Performance Monitoring – NewRelic - http://newrelic.com/ – HoneyBadger - https://www.honeybadger.io/ – Bullet - https://github.com/flyerhzm/bullet – Rack-mini-profiler - https://github.com/MiniProfiler/rack-mini-profiler • Systems Monitoring – Nagios - http://www.nagios.org/ – Munin - http://munin-monitoring.org/ – ScoutApp - https://scoutapp.com/ – ServerDensity - https://www.serverdensity.com/ Gems, Tools & Services worth having a look at :) Gems, Tools & Services worth having a look at :) Questions?