OS Manuals

/usr/bin/nri-mongodb

New Relic Infrastructure MongoDB Integration

From nri-mongodb 2.15.2-r0 (os), captured 2026-11-05 by running nri-mongodb --help (exit 0). permalink

Also provided by 1 other package version
Usage of /usr/bin/nri-mongodb:
  -auth_source string
    	Database to authenticate against (default "admin")
  -cache_ttl duration
    	Optional. The time the integration considers a temporal stored value as valid (defaults to 6 minutes left empty). (default 6m0s)
  -cluster_name string
    	(Deprecated in favor of MongodbClusterName)
  -concurrent_collections int
    	The number of entities to collect metrics for concurrently. This is tunable to reduce CPU and memory requirements. (default 50)
  -events
    	Publish events data.
  -filters string
    	JSON data defining database and collection filters.
  -host string
    	MongoDB host to connect to for monitoring (default "localhost")
  -inventory
    	Publish inventory data.
  -metadata
    	Add customer defined key-value attributes to the samples.
  -metrics
    	Publish metrics data.
  -mongodb_cluster_name string
    	Cluster name to identify this Mongodb instance.
  -nri_add_hostname
    	Add hostname attribute to the samples.
  -nri_cluster string
    	Optional. Cluster name
  -nri_service string
    	Optional. Service name
  -passphrase string
    	Passphrase for decrypting Private Key
  -password string
    	Password for the MongoDB connection
  -pem_key_file string
    	PEM file contains Private Key and Client Certificate
  -port string
    	Port on which MongoDB is running (default "27017")
  -pretty
    	Print pretty formatted JSON.
  -show_version
    	Print build information and exit
  -ssl
    	Enable SSL
  -ssl_ca_certs string
    	Path to the ca_certs file
  -ssl_insecure_skip_verify
    	Skip verification of the certificate sent by the host. This can make the connection susceptible to man-in-the-middle attacks, and should only be used for testing.
  -temp_dir string
    	Optional. Integrations path to store temporal data (defaults to os.tempDir if left empty).
  -username string
    	Username for the MongoDB connection
  -verbose
    	Print more information to logs.
Options (26)
OptionDescriptionSource
-auth_source stringDatabase to authenticate against (default "admin")help
-cache_ttl durationOptional.help
-cluster_name string(Deprecated in favor of MongodbClusterName)help
-concurrent_collections intThe number of entities to collect metrics for concurrently.help
-eventsPublish events data.help
-filters stringJSON data defining database and collection filters.help
-host stringMongoDB host to connect to for monitoring (default "localhost")help
-inventoryPublish inventory data.help
-metadataAdd customer defined key-value attributes to the samples.help
-metricsPublish metrics data.help
-mongodb_cluster_name stringCluster name to identify this Mongodb instance.help
-nri_add_hostnameAdd hostname attribute to the samples.help
-nri_cluster stringOptional.help
-nri_service stringOptional.help
-passphrase stringPassphrase for decrypting Private Keyhelp
-password stringPassword for the MongoDB connectionhelp
-pem_key_file stringPEM file contains Private Key and Client Certificatehelp
-port stringPort on which MongoDB is running (default "27017")help
-prettyPrint pretty formatted JSON.help
-show_versionPrint build information and exithelp
-sslEnable SSLhelp
-ssl_ca_certs stringPath to the ca_certs filehelp
-ssl_insecure_skip_verifySkip verification of the certificate sent by the host.help
-temp_dir stringOptional.help
-username stringUsername for the MongoDB connectionhelp
-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.