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)
| Option | Description | Source |
|---|
-cache_ttl duration | Optional. | help |
-config_path string | NGINX configuration file. | help |
-connection_timeout int | Connection timeout to the Nginx instance in seconds (default 5) | help |
-events | Publish events data. | help |
-inventory | Publish inventory data. | help |
-metadata | Add customer defined key-value attributes to the samples. | help |
-metrics | Publish metrics data. | help |
-nri_add_hostname | Add hostname attribute to the samples. | help |
-nri_cluster string | Optional. | help |
-nri_service string | Optional. | help |
-pretty | Print pretty formatted JSON. | help |
-remote_monitoring | Identifies the monitored entity as 'remote'. | help |
-show_version | Print build information and exit | help |
-status_module string | Name of Nginx status module. | help |
-status_url string | NGINX status URL. | help |
-temp_dir string | Optional. | help |
-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) | help |
-verbose | Print 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.