views:

413

answers:

1

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 ?

+1  A: 

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.

Jason Cohen
I am looking for a framework to collect the data and manage some rules (limits/thresholds). Collected data will be indeed retrieved via JMX.
Dmitry Khalatov