forked from jmxtrans/embedded-jmxtrans
-
Notifications
You must be signed in to change notification settings - Fork 0
Plain Java Servlet Integration
cyrille-leclerc edited this page Apr 13, 2013
·
1 revision
Note: since version 1.0.6
Declare a ServletContextListener
in the web.xml
configuration file.
<webapp ...>
<context-param>
<param-name>jmxtrans.config</param-name>
<param-value>
classpath:jmxtrans.json
classpath:org/jmxtrans/embedded/config/jmxtrans-internals.json
classpath:org/jmxtrans/embedded/config/tomcat-7.json
classpath:org/jmxtrans/embedded/config/jvm-sun-hotspot.json
</param-value>
</context-param>
<listener>
<listener-class>org.jmxtrans.embedded.servlet.EmbeddedJmxTransLoaderListener</listener-class>
</listener>
</webapp>
-
jmxtrans.config
: coma/line-break delimited list of jmxtrans configuration file urls (classpath:...
,http://...
,file:/...
). Default value isclasspath:jmxtrans.json, classpath:org/jmxtrans/embedded/config/jmxtrans-internals.json
. Optional.
- Configuration
- ... Expression Language
- ... Configuration Sample
- Output Writers
- ... Graphite Writer
- ... Graphite Pickle Writer
- ... Librato Writer
- ... SLF4J Writer
- ... Console Writer
- Integration
- ... Maven Setup
- ... Spring Integration
- ... Plain Java Servlet Integration
- Configuration Templates
- ... Tomcat
- ... JVM
- Internals
- ... Implementation Decisions
- ... Health Monitoring
- Latest javadocs
- Forum (Google Groups)
- Downloads
- Samples
- ... [Cocktail Web App] (https://github.com/jmxtrans/embedded-jmxtrans-samples/tree/master/embedded-jmxtrans-webapp-coktail)
- License
- Release Notes