Skip to main content
1.2.0

Configuration Reference

This reference lists the source-backed exporter YAML keys for JMX Exporter 1.2.0.

Top-level collector keys

KeyDescription
startDelaySecondsDelay before collection starts. Default 0.
lowercaseOutputNameConvert metric names to lowercase. Default false.
lowercaseOutputLabelNamesConvert label names to lowercase. Default false.

Remote JMX connection keys

KeyDescription
hostPortRemote host and port; converted to a default JMX service URL. Mutually exclusive with jmxUrl.
jmxUrlExplicit JMX service URL. Mutually exclusive with hostPort.
usernameRemote JMX username.
passwordRemote JMX password.
sslBoolean for remote JMX/RMI SSL.

Object-name and attribute filters

KeyDescription
includeObjectNamesObjectNames to query; defaults to all.
excludeObjectNamesObjectNames not to query; takes precedence.
whitelistObjectNamesCompatibility alias for includeObjectNames.
blacklistObjectNamesCompatibility alias for excludeObjectNames.
includeObjectNameAttributesMap of ObjectName strings to included attributes.
excludeObjectNameAttributesMap of ObjectName strings to excluded attributes.
autoExcludeObjectNameAttributesAutomatically exclude unsupported attributes. Default true.

Rule keys

KeyDescription
patternRegex pattern. Required when name is set.
nameMetric name.
valueStatic value or capture-group expression.
valueFactorNumeric multiplier. Default 1.0.
labelsLabel map. Requires name.
helpHelp text. Requires name.
cacheCache rule match and mismatch results. Default false.
typeGAUGE, COUNTER, or UNTYPED.
attrNameSnakeCaseConvert attribute names to snake case. Default false.

Metric customizer keys

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.

HTTP server keys

KeyDescription
httpServer.threads.minimumMinimum thread count. Default 1; required if threads is configured.
httpServer.threads.maximumMaximum thread count. Default 10; required if threads is configured.
httpServer.threads.keepAliveTimeKeep-alive time in seconds. Default 120; required if threads is configured.

HTTP authentication keys

KeyDescription
httpServer.authentication.basic.usernameRequired for Basic authentication.
httpServer.authentication.basic.passwordRequired for plaintext Basic authentication.
httpServer.authentication.basic.algorithmOptional; defaults to plaintext. Supports SHA-1, SHA-256, SHA-512, and PBKDF2 algorithms.
httpServer.authentication.basic.passwordHashRequired for SHA and PBKDF2 algorithms.
httpServer.authentication.basic.saltRequired for SHA and PBKDF2 algorithms.
httpServer.authentication.basic.iterationsOptional positive integer for PBKDF2.
httpServer.authentication.basic.keyLengthOptional positive integer for PBKDF2.
httpServer.authentication.plugin.classCustom authenticator class name.
httpServer.authentication.plugin.subjectAttributeNameOptional authenticated subject attribute name.

HTTP SSL/TLS keys

KeyDescription
httpServer.ssl.keyStore.filenameKey store file or javax.net.ssl.keyStore fallback.
httpServer.ssl.keyStore.passwordKey store password or javax.net.ssl.keyStorePassword fallback.
httpServer.ssl.certificate.aliasCertificate alias.
httpServer.ssl.keyStore.typeOptional key store type.
httpServer.ssl.trustStore.filenameTrust store file for mutual TLS.
httpServer.ssl.trustStore.typeOptional trust store type.
httpServer.ssl.trustStore.passwordTrust store password.
httpServer.ssl.mutualTLSEnable client certificate authentication. Default false.

OpenTelemetry keys

KeyDescription
openTelemetry.endpointOptional endpoint URL.
openTelemetry.protocolOptional protocol.
openTelemetry.intervalOptional positive integer interval in seconds.
openTelemetry.headersOptional string map.
openTelemetry.timeoutSecondsOptional positive integer timeout in seconds.
openTelemetry.resourceAttributesOptional string map.
openTelemetry.serviceInstanceIdOptional non-blank string.
openTelemetry.serviceNamespaceOptional non-blank string.
openTelemetry.serviceNameOptional non-blank string.
openTelemetry.serviceVersionOptional non-blank string.