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 (RMI) connector to ports that the CXDOT 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 CXDOT collector.
Configure
The JMX integration is enabled by default. To configure the JMX integration, follow these steps:-
Choose how the CXDOT collector finds your Java apps:
- For discovered targets, add autodiscovery annotations for JMX. Per-target credentials and non-default endpoints belong in those annotations.
- For Java apps that the CXDOT collector doesn’t discover, configure static targets as described in the next step.
-
Optional: Configure static targets for Java apps outside your Kubernetes
cluster. For example, add the following to the
values.yamlfor your Helm chart:When you configure static targets, this integration instance collects from exactly those targets instead of discovered targets. -
Optional: Configure a second integration instance to collect from both discovered
pods and static targets. For example, add the following to the
values.yamlfor your Helm chart:Thejmx/externalkey defines a named instance for the static targets. The barejmxkey continues to use autodiscovery. - 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 CXDOT collector can’t reach, override its advertised host or port in the integration configuration.
-
Optional: Disable the integration. For example, add the following to the
values.yamlfor your Helm chart:
Validate
To validate the JMX integration, follow these steps:-
In Live Telemetry Analyzer,
filter for
__name__=cxdot.integration.target.healthandcxdot.integration.name=jmx. Confirm that the metric reports1for each target. Thecxdot.integration.target,server.address, andserver.portattributes identify the target. -
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. Default:[]. 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. -
bean_limitType:integer. Optional. Default:35000. Minimum:1. Maximum number of JMX bean matches collected from each endpoint. When the number of matches exceeds this value, the integration drops beans according to the attribute mapping priority. -
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. Default:{}. TLS certificate and client authentication settings for RMI registry and server 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. Whether to disable transport security. This setting must be false. Useregistry_tlsto control transport security for the RMI registry. -
tls.insecure_skip_verifyType:boolean. Optional. Whether to skip verification of the JMX server certificate. If true, the connection is encrypted but isn’t authenticated and is vulnerable to man-in-the-middle attacks. If false, the Collector verifies 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. Server name to verify in the JMX certificate instead of the endpoint hostname. Use this setting when the certificate name differs from the endpoint hostname. -
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.