Commit 43c5883b authored by Daniel Gerhardt's avatar Daniel Gerhardt

Only include annotations instead of full Stagemonitor dependency

Stagemonitor and its dependencies are no longer included in builds. To
enable Stagemonitor in production, the libraries must be provided by the
host system. Additionally, the Java Servlet container needs to be setup
to load these additional dependencies for the web app.

For Tomcat 8 this is done by setting up a context config file in
conf/Catalina/localhost/<context path>.xml with the following content:

      <Resources className="org.apache.catalina.webresources.StandardRoot">
        <JarResources className="org.apache.catalina.webresources.DirResourceSet"
            base="<path to Stagemonitor JARs>"

See for
more configuration options.
parent dd2a6a7e
......@@ -293,9 +293,9 @@
package org.stagemonitor.core.metrics;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
* When a type is marked with this annotation, the creation of gauges with
* @{@link com.codahale.metrics.annotation.Gauge} is activated for that type.
* <pre><code>
* \@MonitorGauges
* public class Queue {
* \@Gauge(name = "queueSize")
* public int getQueueSize() {
* return queue.size;
* }
* }
* </code></pre>
public @interface MonitorGauges {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment