This project is a WAR file to deploy on the same container than OpenAM. The goal is to send JVM and OpenAM metrics to Graphite, which include:
- Tomcat servlets (for Tomcat 6 and 7)
- JVM Memory
- JVM Garbage collector
- OpenAM authentication (success and failures)
- OpenAM sessions
By default, data will be sends to localhost, port 2003. Console appender is disabled.
To configure where send data, create (or modify) $TOMCAT_HOME/bin/setenv.sh
(make it executable) to have:
CATALINA_OPTS+="-Dgraphite.host=graphite.example.com -Dgraphite.port=2003"
You can modify the namePrefix, default is jmx.#hostname#.
If needed, you can disable graphite appender with -Dgraphite.enabled=false
.
To enable console appender (mainly for debug purposes), add -Dconsole.enabled=true
to CATALINA_OPTS
. On Tomcat, logs will appears in catalina.log
.
Import the dashboard into your kibana and adjust data to match your server or edit the file to replace jmx.sso
by the correct prefix, like java.server
.