Supported telemetry types
The JMX integration supports these telemetry types:Prerequisites
The JMX integration has the following prerequisites:-
Enable remote monitoring through
Java Management Extensions (JMX)
when you start each Java app. Set the remote registry and Remote Method
Invocation connector to ports that the Collector can reach. It’s recommended to
use the same port for both connections and advertise a reachable host or IP address. For example,
add these Java system properties:
- Make the JMX registry and remote connector reachable from the Collector.
Configure
The JMX integration runs by default. To configure manual targets, follow these steps:-
Configure the JMX targets. For example, add the following to the
values.yamlfor your Helm chart:The integration collects from exactly the configured targets. - Optional: Configure the integration’s authentication and Transport Layer Security (TLS) settings to match the remote JMX agent. Supply the username and password together. If a remote stub advertises an address that the Collector can’t reach, override its advertised host or port in the integration configuration.
Validate
To validate the JMX integration, follow these steps:-
In Live Telemetry Analyzer, filter for
cxdot.integration.name=jmx. -
In Metrics Explorer, run the following query:
Confirm that the query returns a nonzero value for each target.
Configuration reference
Configure one JMX integration instance with the following settings. In Helm values, place these settings underconfig.integrations.jmx. In a Collector configuration file, place them under
cxdot.integrations.jmx.
Optional settings
-
enabledType:boolean. Optional. Default:true. Whether to run the JMX integration. If true, the Collector collects JMX metrics. If false, the Collector doesn’t run this integration. -
endpointsType:array of object. Optional. Static JMX targets. Each endpoint can be ahost:portRemote Method Invocation (RMI) registry address or aservice:jmx:rmiURL. When this list isn’t empty, the integration collects from exactly these targets instead of discovered targets. -
endpoints[].endpointType:string. Required. JMX target as ahost:portRMI registry address or aservice:jmx:rmiURL. -
registry_tlsType:boolean. Optional. Default:false. Whether to use TLS for the RMI registry connection. If true, the Collector uses TLS. If false, it uses an unencrypted registry connection. -
advertised_host_overrideType:string. Optional. Default: “. Host to use instead of the host advertised by returned Remote Method Invocation (RMI) stubs. When empty, the integration uses the host from the endpoint. -
advertised_port_overrideType:integer. Optional. Default:0. Minimum:0. Maximum:65535. Port to use instead of the port advertised by returned RMI stubs. A value of0uses the advertised port. -
usernameType:string. Optional. JMX authentication username. Configure with password. -
passwordType:string. Optional. JMX authentication password. Configure with username. -
collection_intervalType:duration. Optional. Default:15s. Time between metric collections from each JMX target. -
bean_detection_intervalType:duration. Optional. Default:10m. Time between JMX bean discovery refreshes. -
target_systemType:string. Optional. Default:jvm. Comma-delimited attribute mapping names. Names must start with a lowercase letter or digit and contain only lowercase letters, digits, underscores, and hyphens. The JVM mapping is included automatically; add -jvm to disable it when at least one other mapping is configured. -
attribute_mapping_pathsType:array of string. Optional. Default:[]. Directories and files searched before the built-in Java Virtual Machine (JVM) attribute mapping. -
tlsType:object. Optional. TLS settings for registry and RMI connections. -
tls.ca_fileType:string. Optional. Path to the CA cert. For a client this verifies the server certificate. For a server this verifies client certificates. If empty uses system root CA. (optional) -
tls.ca_pemType:string. Optional. In memory PEM encoded cert. (optional) -
tls.cert_fileType:string. Optional. Path to the TLS cert to use for TLS required connections. (optional) -
tls.cert_pemType:string. Optional. In memory PEM encoded TLS cert to use for TLS required connections. (optional) -
tls.cipher_suitesType:array of string. Optional. CipherSuites is a list of TLS cipher suites that the TLS transport can use. If left blank, a safe default list is used. See https://go.dev/src/crypto/tls/cipher_suites.go for a list of supported cipher suites. -
tls.curve_preferencesType:array of string. Optional. contains the elliptic curves that will be used in an ECDHE handshake, in preference order Defaults to empty list and “crypto/tls” defaults are used, internally. -
tls.include_system_ca_certs_poolType:boolean. Optional. If true, load system CA certificates pool in addition to the certificates configured in this struct. -
tls.insecureType:boolean. Optional. In gRPC and HTTP when set to true, this is used to disable the client transport security. See https://godoc.org/google.golang.org/grpc#WithInsecure for gRPC. Please refer to https://godoc.org/crypto/tls#Config for more information. (optional, default false) -
tls.insecure_skip_verifyType:boolean. Optional. InsecureSkipVerify will enable TLS but not verify the certificate. -
tls.key_fileType:string. Optional. Path to the TLS key to use for TLS required connections. (optional) -
tls.key_pemType:string. Optional. In memory PEM encoded TLS key to use for TLS required connections. (optional) -
tls.max_versionType:string. Optional. MaxVersion sets the maximum TLS version that is acceptable. If not set, refer to crypto/tls for defaults. (optional) -
tls.min_versionType:string. Optional. MinVersion sets the minimum TLS version that is acceptable. If not set, TLS 1.2 will be used. (optional) -
tls.reload_intervalType:duration. Optional. ReloadInterval specifies the duration after which the certificate will be reloaded If not set, it will never be reloaded (optional) -
tls.server_name_overrideType:string. Optional. ServerName requested by client for virtual hosting. This sets the ServerName in the TLSConfig. Please refer to https://godoc.org/crypto/tls#Config for more information. (optional) -
tls.tpmType:object. Optional. Trusted platform module configuration -
tls.tpm.authType:string. Optional. Authorization value for the trusted platform module key. -
tls.tpm.enabledType:boolean. Optional. Whether to use a trusted platform module for the TLS private key. If true, the Collector loads the key from the configured device or socket. If false, the Collector uses the configured key file or in-memory key. -
tls.tpm.owner_authType:string. Optional. Owner authorization value for the trusted platform module. -
tls.tpm.pathType:string. Optional. The path to the TPM device or Unix domain socket. For instance /dev/tpm0 or /dev/tpmrm0.

