"Plugins" Posts


MongoDB Slow Queries Monitoring

By Andre Bullet_white Posted in Plugins Bullet_white Comments Comments

Thanks to Jacob Harris, we have a MongoDB Slow Queries plugin for Scout.

The MongoDB plugin captures the number of slow queries per minute according to the threshold you specify. It also reports details of any slow queries that take place.

Of course, like any other Scout plugin, you can set trend triggers, graph results, etc.

Please install from our directory, kick the tires, and let us know if you have any feedback!

Also, for general MongoDB Monitoring, checkout the MongoDB Monitoring Plugin.

 

Delayed::Job Monitoring Plugin

By Derek Bullet_white Posted in Plugins Bullet_white Comments Comments

Lukas Rieder and Alexander Lang (with updates from Eric Lindvall) have created a Delayed::Job Monitoring Plugin for Scout. Just install the plugin through scoutapp.com and your crucial proceessing jobs no longer fail in silence.

Delayed::Job is a widely used database-backed asynchronous priority queue extracted from Shopify. Need to send massive newsletters? Handle batch imports? Using Ruby on Rails? Take a look at Delayed::Job for these types of long-running scheduled tasks.

Lukas and Alex originally developed the plugin during a pairing session while working on PaperC, an online book platform specializing in textbooks. PaperC processes PDFs using Delayed::Job. Eric made several additions to the plugin based on his work at Cloudvox, an easy-to-use open phone API platform. Cloudvox even supports conferencing and activating phone numbers.

View the directory entry for more information.

 

Redis Monitoring Plugin

By Derek Bullet_white Posted in Plugins Bullet_white Comments Comments

Matt Todd of Highgroove Studios and Ches Martin of Rails Machine have put together a Redis Monitoring Plugin for Scout. Redis is a persistant key-value database lauded for its speed and easy setup.

The Redis Monitoring Plugin reports the following metrics:

  • Background save in progress
  • Changes since last save
  • Commands Per-Second
  • Connected clients
  • Connected slaves
  • Connections Per-Second
  • Uptime in hours
  • Used Memory in KB
  • Used Memory in MB

Installation is easy – just install the redis Ruby gem and add the plugin on scoutapp.com, and you’re done!

View the directory entry for more information.

 

Sphinx Monitoring Plugin

By Derek Bullet_white Posted in Plugins Bullet_white Comments Comments

Sam Sinensky wrapped up ‘09 with a Scout plugin for monitoring Sphinx, an open-source SQL full-text search engine. The Sphinx Monitoring Plugin can be found here.

Just provide the paths to your Sphinx log files and Sam’s plugin reports the following data:

  • Queries per-minute
  • Average query time
  • Average time per rebuild
  • Index rebuilds
  • Average results returned

Like with any Scout plugin, you can plot metrics from the Sphinx Monitoring Plugin against other metrics. For example, the chart below shows the relationship between the Sphinx query rate and the server load:

Resources

 

Rails Monitoring Improvement: Ignore Specific Actions

By Andre Bullet_white Posted in Plugins Bullet_white Comments Comments

Sometimes you have actions in your Rails app that you know take a long time. Getting alerts on these actions is just noise.

With the updated Rails Monitoring Plugin, you can filter out any requests on which you don't want to be notified. You supply a regular expression, so you make as simple or complicated as you need to.

Update your Rails plugin

If you already have the Rails plugin installed, you need to update it. Go to plugin->code and click Update:

Then go to plugin->edit and click Update Options:

The new goodness is under "advanced options":

Ignoring Actions

You provide a regular expression for actions you want don't want to be alerted on when they're slow. In the simplest case, don't even worry about it being a regular expression -- just provide a string you want to match. For example, if you don't want to be alerted to any slow actions with admin in the URI, just put admin in the Ignored Actions field.

More Complicated Matches

To ignore all actions under admin and also accounts/new, the regex is(admin|accounts\/new). If you wanted to make sure admin only matches paths starting with admin, just match the beginning slash: (\/admin|accounts\/new)

If you're building a complicated regex, try it out separately to ensure it matches/doesn't match what you expect. I dig on Rubular for quick regex sanity checks. Of course, the plugin will tell you if your regex has a problem, but you'll get faster feedback by running it through Rubular.

Notes

Note that the match is case insensitive -- no need to worry about case.

Finally, note that excluded actions will still be analyzed in the daily Rails Analysis reports, so you'll still get metrics on them -- you just won't get email notifications for actions you already know are slow!

 

In-depth Rails Monitoring using only a production log file

By Andre Bullet_white Posted in Plugins, Features Bullet_white Comments Comments  Bullet_white no trackbacks

No Rails plugins to install. No performance hit during the request cycle. Nothing to break your application code. Nothing to restart. With just the path to your production Rails log file, Scout’s new Rails monitoring plugin alerts you when your Ruby on Rails application is slowing down and provides detailed daily performance reports.

First, an open-source shoutout: thanks to Willem van Bergen and Bart ten Brinke (the Rails Doctors) for their Request Log Analyzer gem, which we built upon for this functionality.

Rails analysis made easy

  1. Easy setup. All we need is a path to the log file of your production Rails application. That’s it. There’s nothing to configure in your Rails application. Unlike our previous Rails analyzer, you don’t have to install a Rails plugin or even redeploy your Rails application. There are zero changes to your Rails code base.
  1. In-depth analysis. Get rendering time and database time on a per-action basis. Know your error code rates, HTTP request types, cache hit ratios, and more.
  1. No performance impact. Since the analysis happens out the request-response cycle, there is no performance impact on your running Rails app.
  2. Alerts. Like all Scout plugins, you can get alerts based on the flat data the plugin produces. Get alerts on requests/minute, number of slow requests, and average request length.

How it works

The plugin performs a combination of incremental and batch processing on your application’s logfile. Every time the Scout agent runs (3min-30min, depending on your Scout plan, it parses new entries in your log file since the last time it ran. This provides key metrics for near-realtime graphs and alerts.

Once a day, the Analyzer runs to crunch the numbers for more in-depth metrics. This is what provides the breakdowns among all your actions, analysis of most popular actions, most expensive actions, etc.

Try it out!

Install the Rails Analysis plugin. If you don’t already have a Scout account, all of our accounts have a 30 day free trial.

 

Older posts: 1 ... 3 4 5 6 7