Skip to content

Instantly share code, notes, and snippets.

@remh
Last active December 30, 2015 12:39
Show Gist options
  • Save remh/7830215 to your computer and use it in GitHub Desktop.
Save remh/7830215 to your computer and use it in GitHub Desktop.
instances:
- host: localhost
port: 7008
name: tomcat_instance
init_config:
conf:
#######################################
- include:
domain: java.lang
bean: java.lang:type=ClassLoading
attribute:
LoadedClassCount:
alias: jmx.loaded_class_count
metric_type: gauge
#####################################
- include:
type: ThreadPool
attribute:
maxThreads:
alias: tomcat.threads.max
metric_type: gauge
currentThreadCount:
alias: tomcat.threads.count
metric_type: gauge
currentThreadsBusy:
alias: tomcat.threads.busy
metric_type: gauge
- include:
type: GlobalRequestProcessor
attribute:
bytesSent:
alias: tomcat.bytes_sent
metric_type: counter
bytesReceived:
alias: tomcat.bytes_rcvd
metric_type: counter
errorCount:
alias: tomcat.error_count
metric_type: counter
requestCount:
alias: tomcat.request_count
metric_type: counter
maxTime:
alias: tomcat.max_time
metric_type: gauge
processingTime:
alias: tomcat.processing_time
metric_type: counter
- include:
j2eeType: Servlet
attribute:
processingTime:
alias: tomcat.servlet.processing_time
metric_type: counter
errorCount:
alias: tomcat.servlet.error_count
metric_type: counter
requestCount:
alias: tomcat.servlet.request_count
metric_type: counter
- include:
type: Cache
accessCount:
alias: tomcat.cache.access_count
metric_type: counter
hitsCounts:
alias: tomcat.cache.hits_count
metric_type: counter
- include:
type: JspMonitor
jspCount:
alias: tomcat.jsp.count
metric_type: counter
jspReloadCount:
alias: tomcat.jsp.reload_count
metric_type: counter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment