Configuration
JMX Exporter 1.5.0 uses an exporter YAML file. The same file can contain collector configuration, HTTP server configuration, and OpenTelemetry configuration.
Minimal configuration
rules:
- pattern: ".*"
Configuration areas
| Area | Top-level keys | Details |
|---|---|---|
| Collector | startDelaySeconds, hostPort, jmxUrl, username, password, ssl, rules | Rules and Object Names |
| HTTP server | httpServer | HTTP Server Configuration |
| HTTP authentication | httpServer.authentication | Authentication |
| HTTP TLS | httpServer.ssl | SSL |
| OpenTelemetry | openTelemetry | OpenTelemetry |
| Metric customizers | metricCustomizers | Metric Customizers |
| JVM metric exclusion | excludeJvmMetrics | Object Names |
Advanced skeleton
startDelaySeconds: 0
lowercaseOutputName: false
lowercaseOutputLabelNames: false
includeObjectNames:
- "java.lang:type=Memory"
excludeObjectNames: []
rules:
- pattern: "java.lang<type=Memory><HeapMemoryUsage>Used"
name: jvm_memory_heap_used_bytes
type: GAUGE
Only document and use keys that are supported by the 1.5.0 implementation. The configuration reference lists the source-backed keys.