Inspeqtor 0.7.0 -- total_rss and Postgresql

Nov 25, 2014

I just released Inspeqtor 0.7.0 (changes) with a few awesome new features. What's new?

memory:total_rss

My main use case for Inspeqtor is monitoring forking app servers with long-living child processes,
e.g. Unicorn or puma, and restarting them if the child processes start to bloat. Unfortunately this
is a common problem in the Ruby world. Now you can do this:

# /etc/inspeqtor/services.d/myapp_unicorn.inq
check service myapp_unicorn
# total_rss = the sum of the RSS of the master process + all child processes
if memory:total_rss > 2g for 4 cycles then restart, alert

This was the final missing bit of functionality I required to monitor Ruby on Rails applications; now I can
uninstall Monit!

Postgresql Metrics

Inspeqtor can now connect to Postgresql instances and pull critical metrics for monitoring. These
metrics are rather complicated to explain so I will refer you straight to the
Postgresql wiki documentation which
lists each metric, what it means and how it is calculated. An example is worth 1000 words: