OS Manuals

/usr/bin/nri-nginx

New Relic Infrastructure Nginx Integration

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

Also provided by 1 other package version
Usage of /usr/bin/nri-nginx:
  -cache_ttl duration
    	Optional. The time the integration considers a temporal stored value as valid (defaults to 6 minutes left empty). (default 6m0s)
  -config_path string
    	NGINX configuration file. (default "/etc/nginx/nginx.conf")
  -connection_timeout int
    	Connection timeout to the Nginx instance in seconds (default 5)
  -events
    	Publish events data.
  -inventory
    	Publish inventory data.
  -metadata
    	Add customer defined key-value attributes to the samples.
  -metrics
    	Publish metrics data.
  -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.
  -remote_monitoring
    	Identifies the monitored entity as 'remote'. In doubt: set to true.
  -show_version
    	Print build information and exit
  -status_module string
    	Name of Nginx status module. discover | ngx_http_stub_status_module | ngx_http_status_module | ngx_http_api_module (default "discover")
  -status_url string
    	NGINX status URL. If you are using ngx_http_api_module be sure to include the full path ending with the API version number (default "http://127.0.0.1/status")
  -temp_dir string
    	Optional. Integrations path to store temporal data (defaults to os.tempDir if left empty).
  -validate_certs
    	If the status URL is HTTPS with a self-signed certificate, set this to false if you want to avoid certificate validation (default true)
  -verbose
    	Print more information to logs.
Options (18)
OptionDescriptionSource
-cache_ttl durationOptional.help
-config_path stringNGINX configuration file.help
-connection_timeout intConnection timeout to the Nginx instance in seconds (default 5)help
-eventsPublish events data.help
-inventoryPublish inventory data.help
-metadataAdd customer defined key-value attributes to the samples.help
-metricsPublish metrics data.help
-nri_add_hostnameAdd hostname attribute to the samples.help
-nri_cluster stringOptional.help
-nri_service stringOptional.help
-prettyPrint pretty formatted JSON.help
-remote_monitoringIdentifies the monitored entity as 'remote'.help
-show_versionPrint build information and exithelp
-status_module stringName of Nginx status module.help
-status_url stringNGINX status URL.help
-temp_dir stringOptional.help
-validate_certsIf the status URL is HTTPS with a self-signed certificate, set this to false if you want to avoid certificate validation (default true)help
-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.