Skip to content

Metrics

arozhkov edited this page Jan 10, 2013 · 3 revisions

Properties:

mbean - Object name or Object name pattern
attr - collected attribute of Mbean
subattr - collected attribute of the attr when it's of CompositeData type
rate - collection rate in seconds
label - string used to identify the metric

Example:

- mbean:    java.lang:type=Memory
  attr:     NonHeapMemoryUsage
  subattr:  committed
  rate:     30
  label:    Mem.NonHeapCommitted

The label property could contain $Name string that will be replaced by MBean name property at runtime.

Example:

- mbean:    java.lang:type=MemoryPool,*
  attr:     Usage
  subattr:  used
  rate:     10
  label:    10s.MemPool.$Name.used   

This metric will return five values with labels like: 10s.MemPool.PSPermGen.used and 10s.MemPool.OldGen.used

Clone this wiki locally