Skip to main content
1.3.0

Metric Customizers

Metric customizers add labels or extra metrics for selected MBeans.

Structure

metricCustomizers:
- mbeanFilter:
domain: java.lang
properties:
type: Memory
attributesAsLabels:
- Name
extraMetrics:
- name: example_extra_metric
value: 1
description: Example extra metric
KeyDescription
metricCustomizers[]Customizer list.
mbeanFilter.domainRequired domain.
mbeanFilter.propertiesOptional ObjectName properties.
attributesAsLabelsAttribute names to add as labels.
extraMetrics[].nameRequired extra metric name.
extraMetrics[].valueRequired extra metric value.
extraMetrics[].descriptionOptional description.

Attributes as labels

Use attributesAsLabels when a selected MBean attribute should become a Prometheus label.

Extra metrics

Use extraMetrics to emit additional static metrics for a selected MBean.