"Examples" Posts


An intro to the Docker Stats API

By Mark Bullet_white Posted in Examples Bullet_white Comments Comments

If I was teaching Server Health 101, I'd start with four key metrics:

  • CPU Usage
  • Memory Usage
  • Network I/O
  • Disk Utilization

The approach for fetching these metrics on Linux hosts is tried-and-true (hint: look in the /proc folder). However, I was curious about Docker Containers: where do I access these critical metrics? What tools does Docker provide? Are there any gotchas?

Read on for what I found.

Read More →

 

Implementing Docker event monitoring from scratch

By Mark Bullet_white Posted in Examples Bullet_white Comments Comments

docker events dashboard

Docker's API provides a ton of functionality around containers and images - but there is a hidden secret, one that is easy to miss in the documentation: Docker's API has the capability to report host wide events! Container events like: die, restart & out of memory. With a simple GET request, these events are available for processing.

I'll take a look at how we can tap into this functionality, and how we can convert raw data into meaningful dashboards and alerts.

Read More →

 

Debugging request bottlenecks with realtime charts

By Derek Bullet_white Posted in Examples Bullet_white Comments Comments

Last week, one of our application servers died. We have four app servers, so in theory, the death of one app server shouldn't bring the entire platoon down. However, real-life had other plans: 95% of requests were handled fine, but around 5% were being dropped. Here's the story of how we diagnosed and fixed the issue with our realtime charts.

Read More →

 

Sparklines in your Campfire chat room

By Derek Bullet_white Posted in Updates, Examples Bullet_white Comments Comments

Gavin Stark and the Real Digital Media team are Campfire power users. Back in April, Gavin created a Hubot script to send Scout alerts to their chatroom. Now, they needed visuals:

We wanted to grab some of the graphics that Scout’s in-app page offers to users to provide us with visual feedback on historical norms for each metric without leaving the chat room. A call to Scout support got graphics ported into the API in less than a day, and we were off and running.

hubot

His sparkline update hasn’t been merged into the Hubot repo yet, but you can view his fork. UPDATE – Merged!.

Resources

 

Real-world Scout at Rails Machine

By Derek Bullet_white Posted in Examples Bullet_white Comments Comments

Josh Nichols of Rails Machine on their monitoring philosophy:

Measure all the metrics and alert on metrics that are actionable.

If you’ve got a bunch of servers, you’re going to want to read Josh Nichols’ How we roll with Scout article on the Rails Machine blog.

Rails Machine is a Ruby on Rails-focused managed hosting provider, which means they’re on the front lines when performance goes bad. From plugins to alerting, Josh details how they stay proactive on performance.

 

Scout Alerts in Campfire via Hubot

By Andre Bullet_white Posted in Examples, Updates Bullet_white Comments Comments

Want to get Scout alerts piped into your Campfire room? You can, thanks to Scout user Gavin Stark’s Hubot script for Scout. Gavin describes the advantages for his team at Real Digital Media:

Our support staff can now see the alerts from Scout as a team. We combine this with other monitoring services that monitor ping-ability and web response speeds.

Getting Scout alerts in Campfire means we can discuss them inline and respond quickly. We’ve found the immediacy of Campfire to be an improvement over email.

Want to get your Scout alerts in Campfire? You’ll need a Hubot.

Need to set up a Hubot?

Hubot is a program that listens in on your chat room. He responds to commands and can provide notifications. Your Hubot needs to run someplace. Most people set him up on Heroku, since it’s A) really simple; B) free!

  1. follow these instructions to deploy Hubot to Heroku.
  2. once your Hubot has joined your Campfire room and responds to commands (try: hubot help), continue below to configure Scout to talk to your Hubot.

Already Got a Friendly Hubot?

Two easy steps:

  1. add the Hubot Script for Scout into your Hubot’s /scripts directory.
  2. in your Scout account, click on “Notifications,” then set the webhooks URL to http://YOUR_HUBOT_URL/hubot/scoutapp/CAMPFIRE_ROOM_NUMBER

That’s it! Try creating a Scout trigger that fires immediately to test it out.

Thanks again to Scout user Gavin Stark for writing the Hubot script, and to Hubot maintainer Tom Bell for the quick merge.

Related

 

Older posts: 1 2 3