Inspeqtor is my new take on application infrastructure monitoring. You use it to verify rules about your database, web server, caches, etc and if anything is wrong, Inspeqtor will alert you. After the initial release 3 weeks ago, I was distracted a bit by a DMCA takedown from a similar project but thankfully that went away quickly. Since then I've added several awesome new features!
I'll admit, I got this decision wrong. Init.d support was initially an Inspeqtor Pro feature but it's been pulled down into Inspeqtor and open sourced. Unfortunately there are many instances of core infrastructure (e.g. nginx) still distributing themselves with a dumb sysvinit script. Users can't control this and it's not fair to tell them I won't support it due to my own dislike of init.d.
Inspeqtor can now monitor init.d-based services that use PID files. Follow the instructions on the Initd wiki page to ensure Inspeqtor can find the PID file for your service.
You can now specify your rules in "per second" rates. Previously you had to give a raw number which implicitly depended on the 15 second cycle time. Now your threshold is clearer:
# /etc/inspeqtor/services.d/mysql.inq check service mysql # before if mysql:Queries > 750 then alert # now! if mysql:Queries > 50/sec then alert
Use the new
inspeqtorctl export command to dump the latest metric data in JSON format. There's a million things you can do once you have the raw data: your imagination is the only limit!
Inspeqtor got a few new features and so did Inspeqtor Pro.
Pro -- Monitor recurring jobs
Cron jobs are special because they run in their own cron environment sandbox and are easy to misconfigure. At some point every developer has seen a cron job which works perfectly on their own machine but fails in production due to some environmental bug. With Inspeqtor Pro you give it a list of jobs in /etc/inspeqtor/jobs.d/*.inq along with how often they should "check in" and Inspeqtor will alert you if a job has not checked in within the given window.
# /etc/inspeqtor/jobs.d/whatever.inq check jobs bank_transfer happens every 2 hours warehouse_ftp happens every day
Each job calls inspeqtorctl to check in and tell Inspeqtor it finished successfully.
> inspeqtorctl job_done warehouse_ftp OK
If Inspeqtor does not see a check in within the given period of time, it will fire an alert. More detail in the wiki.
Pro -- Export to Statsd
Inspeqtor Pro can send collected metrics directly to your Statsd server, meaning you can graph and visualize them with Graphite, Librato, Datadog or others. The integration literally couldn't be simpler, requiring just a single line to your inspeqtor.conf:
# /etc/inspeqtor/inspeqtor.conf set statsd_location localhost:8125
Now you can see your metrics, like this:
That's 0.6.0 in a nutshell! If you aren't using Inspeqtor yet, here's how to get started.comments powered by Disqus