Got to create some kind of "counters" for online service monitoring - i.e. Foo_Request_Total, Foo_Request_DB_error, Foo_Request_Timedout, Bar_Request_Total,...
Also, some kind of alarm has to be generated when counter passes a pre-defined limit (for example SNMP trap if more than 5 requests per hour were timed out).
Could you suggest any Java framework for this ?
The standard monitoring mechanism in Java is JMX.
You can monitor services remotely and even execute commands.
There are JMX/SNMP connectors you can use to map values to a MIB and generate traps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With