performa icon indicating copy to clipboard operation
performa copied to clipboard

More monitors

Open webkida opened this issue 3 years ago • 1 comments

Hello,

How can we monitor tomcat and MySQL queries

webkida avatar Feb 19 '21 10:02 webkida

Very sorry for the incredibly long delay on this response.

You can monitor anything you want. You just need to add a custom Command which executes a command-line executable that produces output you can parse. Then add a Monitor which points to your command output as its data source. You can use a regular expression to locate a specific data metric (number value) in your command output, or, if the command produces JSON, you can traverse the JSON tree to locate the data metric.

Take a look at the "Count Open Files" command, which executes cat /proc/sys/fs/file-nr, and the "Open File Descriptors" monitor, which uses that custom command output. These ship with Performa, and showcase how to do this.

jhuckaby avatar Jul 11 '23 00:07 jhuckaby