Introducing Inspeqtor

2014-10-02

I’ve written server-side applications for a decade now, and monitoring the components of your application is critical but painful. What monitors the CPU and RAM usage of your custom daemons? What monitors Redis, MySQL, memcached and the other parts of your system to ensure they are all behaving normally? What if I told you you could do all that and set it up in less than 5 minutes?

Say hello to Inspeqtor!

logo-inspeqtor

Inspeqtor is a Linux daemon which understands processes and major, popular pieces of application infrastructure. You write very simple rules about the services running on the machine and Inspeqtor will notify you when those rules are breached, processes disappear or change PID.

Inspeqtor understands the notion of an application deploy and will not notify you during the deploy process since change is normal and expected.

I want Inspeqtor to be incredibly easy to set up and monitor common, useful metrics. Here’s how to monitor mysql:

# /etc/inspeqtor/conf.d/mysql.inq
check service mysql with username dbuser, password thepass, socket /tmp/mysql.sock
  if memory:rss > 1g then alert
  if cpu:user > 90% then alert
  # inspeqtor checks every 15 seconds
  # more than 50 queries per sec, let me know
  if mysql:Queries > 750 then alert
  # watch out for those slow queries!
  if mysql:Slow_queries > 10 then alert
  # you can even monitor slave replication lag!
  if mysql:Seconds_Behind_Master > 30 then alert

That’s it, just a few words of readable English, no XML, YAML or other painful formats. Inspeqtor talks to your init system to find the PID and monitor CPU and RAM. It knows how to log into mysql to gather metrics.

Look at this awesomeness

Get current status of all services with inspeqtorctl status:

Screen Shot 2014-09-29 at 10.15.39

See the graph for a specific metric over the last hour right in your console with inspeqtorctl show host load:1:

Screen Shot 2014-09-26 at 10.39.09

Inspeqtor is a single binary written in Go. It has no runtime dependencies and uses little memory. I’m hoping a fast, efficient language makes for a monitoring tool you can rely on.

But wait, THERE’S MORE!

Of course there’s Inspeqtor Pro. The commercial version adds even more features:

This is a tool I’ve wanted to build for years and I finally got the opportunity to make it real. I hope Inspeqtor becomes an indispensable tool in your devops toolkit but please remember this is brand new software and we’re not at version 1.0 yet. I’m going to spend the next few years making it awesome. If you want to help me, here’s the place to start.

Finally, thank you to @obfuscurity, @benbjohnson and other early reviewers for their great pre-release feedback.

Useful Links: