I’ve installed Sensu a few days ago, and I’ve used it to monitoring server metrics, it works well. But there’s a little problem – How can I use it to monitoring internal status of any app?
Let’s say, I have a web server. I can use Sensu to get the running status (whether it’s running or suspend or stopped, I call this external status). But how can the Sensu monitor can tell how many requests per minute (I call this internal status) on the web server?
I imagine there’s a way to achieve this, but haven’t try it yet:
the Web Server output internal status to log files, then use Sensu checks (standalone checks) to parse those log files and send results back to Sensu Monitor.
Is this approch ok? Are there any other ways to achieve this goal?