Skip to content

Instantly share code, notes, and snippets.

@atishn
Created August 1, 2014 19:18
Show Gist options
  • Save atishn/d5dbf9eceb50a8a5d428 to your computer and use it in GitHub Desktop.
Save atishn/d5dbf9eceb50a8a5d428 to your computer and use it in GitHub Desktop.
Java Melody Web Configuration
<!-- Custom CSS -->
   <filter>
       <filter-name>customResourceFilter</filter-name>
      <filter-class>net.bull.javamelody.CustomResourceFilter</filter-class>
       <init-param>
           <param-name>monitoring.css</param-name>
           <param-value>/styles/monitoring.css</param-value>
       </init-param>
   </filter>
   <filter-mapping>
       <filter-name>customResourceFilter</filter-name>
       <url-pattern>/monitoring</url-pattern>
   </filter-mapping>
<!-- Monitor filter -->
   <filter>
       <filter-name>monitoring</filter-name>
       <filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
       <init-param>
           <param-name>storage-directory</param-name>
           <param-value>logs/monitoring</param-value>
       </init-param>
       <init-param>
           <param-name>url-exclude-pattern</param-name>
           <param-value>(/images/.*|/js/.*|/styles/.*)</param-value>
       </init-param>
       <init-param>
           <param-name>admin-emails</param-name>
           <param-value>[email protected]</param-value>
       </init-param>
       <init-param>
           <param-name>mail-session</param-name>
           <param-value>MailSession</param-value>
       </init-param>
       <init-param>
           <param-name>mail-periods</param-name>
           <param-value>week,month</param-value>
       </init-param>
   </filter>
   <filter-mapping>
       <filter-name>monitoring</filter-name>
       <url-pattern>/*</url-pattern>
   </filter-mapping>
   <listener>
       <listener-class>net.bull.javamelody.SessionListener</listener-class>
   </listener>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment