-
Notifications
You must be signed in to change notification settings - Fork 37
Plain Java Servlet Integration
Simone Zorzetti edited this page Mar 12, 2016
·
2 revisions
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. You can use urls likeetcd://host:port/path/key
to retrieve a configuration json from an etcd kv store. If you have an etcd cluster use the syntaxetcd://[host1:port1,host2:port2,...]/path/key
. The members of the cluster are used only in failover mode and strictly in the sequence specified.
- Configuration
- ... Expression Language
- ... Configuration Sample
- Output Writers
- ... Graphite Writer
- ... StatsD Writer
- ... Graphite Pickle Writer
- ... Librato Writer
- ... SLF4J Writer
- ... Stackdriver Writer
- ... CopperEgg Writer
- ... Csv 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