OS Manuals

/usr/bin/nri-jmx

New Relic Infrastructure JMX Integration with JDK 11 runtime

From nri-jmx-jdk11 3.19.2-r0 (os), captured 2026-11-05 by running nri-jmx --help (exit 0). permalink

Usage of /usr/bin/nri-jmx:
  -collection_config string
    	JSON format metrics collection configuration
  -collection_files string
    	A comma separated list of full paths to metrics collections configuration files
  -config_file string
    	For troubleshooting only: Specify JMX config file. If you don't want to load the config from the file set this empty (default "/etc/newrelic-infra/integrations.d/jmx-config.yml")
  -connection_url string
    	full connection URL
  -enable_internal_stats
    	Print nrjmx internal query stats for troubleshooting
  -events
    	Publish events data.
  -heartbeat_interval int
    	BETA: Interval in seconds for submitting the heartbeat while in long-running mode (default 5)
  -hide_secrets
    	Set this to false if you want to see the secrets in the verbose logs. (default true)
  -instance_name string
    	For troubleshooting only: Specify which block from the jmx config file will be used. You can find the value in the jmx config file. Is the name field of the instance / integration. If left empty, first configuration block will be used.
  -interval int
    	BETA: Interval in seconds for collecting data while while in long-running mode (default 30)
  -inventory
    	Publish inventory data.
  -jmx_host string
    	The host running JMX (default "localhost")
  -jmx_pass string
    	The password for the JMX connection
  -jmx_port string
    	The port JMX is running on (default "9999")
  -jmx_remote
    	When activated uses the JMX remote url connection format (by default on JBoss Domain-mode)
  -jmx_remote_jboss_standalone
    	When activated uses the JMX remote url connection format on JBoss Standalone-mode
  -jmx_remote_jboss_standlone
    	Deprecated, use -jmx-remote-jboss-standalone instead
  -jmx_ssl
    	Use https
  -jmx_uri_path string
    	The path portion of the JMX Service URI. This is useful for nonstandard service uris
  -jmx_user string
    	The username for the JMX connection
  -key_store string
    	The location for the keystore containing JMX Client's SSL certificate
  -key_store_password string
    	Password for the SSL Key Store
  -local_entity
    	Collect all metrics on the local entity. Use only when monitoring localhost.
  -long_running
    	BETA: In long-running mode integration process will be kept alive
  -metadata
    	Add customer defined key-value attributes to the samples.
  -metric_limit int
    	Number of metrics that can be collected per entity. If this limit is exceeded the entity will not be reported. A limit of 0 implies no limit. (default 200)
  -metrics
    	Publish metrics data.
  -nr_jmx string
    	nrjmx tool executable path (default "/usr/bin/nrjmx")
  -nri_add_hostname
    	Add hostname attribute to the samples.
  -nri_cluster string
    	Optional. Cluster name
  -nri_service string
    	Optional. Service name
  -pretty
    	Print pretty formatted JSON.
  -query string
    	For troubleshooting only: Connect to the JMX endpoint and execute the query. Query format DOMAIN:BEAN
  -remote_monitoring
    	Allows to monitor multiple instances as 'remote' entity. Set to 'FALSE' value for backwards compatibility otherwise set to 'TRUE'
  -show_version
    	Print build information and exit
  -temp_dir string
    	Optional. Integrations path to store temporal data (defaults to os.tempDir if left empty).
  -timeout int
    	Timeout for JMX queries (default 10000)
  -trust_store string
    	The location for the keystore containing JMX Server's SSL certificate
  -trust_store_password string
    	Password for the SSL Trust Store
  -verbose
    	Print more information to logs.
Options (40)
OptionDescriptionSource
-collection_config stringJSON format metrics collection configurationhelp
-collection_files stringA comma separated list of full paths to metrics collections configuration fileshelp
-config_file stringFor troubleshooting only: Specify JMX config file.help
-connection_url stringfull connection URLhelp
-enable_internal_statsPrint nrjmx internal query stats for troubleshootinghelp
-eventsPublish events data.help
-heartbeat_interval intBETA: Interval in seconds for submitting the heartbeat while in long-running mode (default 5)help
-hide_secretsSet this to false if you want to see the secrets in the verbose logs.help
-instance_name stringFor troubleshooting only: Specify which block from the jmx config file will be used.help
-interval intBETA: Interval in seconds for collecting data while while in long-running mode (default 30)help
-inventoryPublish inventory data.help
-jmx_host stringThe host running JMX (default "localhost")help
-jmx_pass stringThe password for the JMX connectionhelp
-jmx_port stringThe port JMX is running on (default "9999")help
-jmx_remoteWhen activated uses the JMX remote url connection format (by default on JBoss Domain-mode)help
-jmx_remote_jboss_standaloneWhen activated uses the JMX remote url connection format on JBoss Standalone-modehelp
-jmx_remote_jboss_standloneDeprecated, use -jmx-remote-jboss-standalone insteadhelp
-jmx_sslUse httpshelp
-jmx_uri_path stringThe path portion of the JMX Service URI.help
-jmx_user stringThe username for the JMX connectionhelp
-key_store stringThe location for the keystore containing JMX Client's SSL certificatehelp
-key_store_password stringPassword for the SSL Key Storehelp
-local_entityCollect all metrics on the local entity.help
-long_runningBETA: In long-running mode integration process will be kept alivehelp
-metadataAdd customer defined key-value attributes to the samples.help
-metric_limit intNumber of metrics that can be collected per entity.help
-metricsPublish metrics data.help
-nr_jmx stringnrjmx tool executable path (default "/usr/bin/nrjmx")help
-nri_add_hostnameAdd hostname attribute to the samples.help
-nri_cluster stringOptional.help
-nri_service stringOptional.help
-prettyPrint pretty formatted JSON.help
-query stringFor troubleshooting only: Connect to the JMX endpoint and execute the query.help
-remote_monitoringAllows to monitor multiple instances as 'remote' entity.help
-show_versionPrint build information and exithelp
-temp_dir stringOptional.help
-timeout intTimeout for JMX queries (default 10000)help
-trust_store stringThe location for the keystore containing JMX Server's SSL certificatehelp
-trust_store_password stringPassword for the SSL Trust Storehelp
-verbosePrint more information to logs.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.