Supported Platforms

PlatformMetricsLogsTraces
Linux
Windows
macOS

Prerequisites

This source supports nginx versions 1.18 and 1.20.

Configuration Table

ParameterTypeDefaultDescription
enable_metricsbooltrueEnable to collect metrics.
endpoint*string"http://localhost:80/status"The endpoint of the NGINX server.
collection_intervalint60How often (seconds) to scrape for metrics.
enable_tlsboolfalseWhether or not to use TLS.
insecure_skip_verifyboolfalseEnable to skip TLS certificate verification.
ca_filestringCertificate authority used to validate the database server's TLS certificate.
cert_filestringA TLS certificate used for client authentication, if mutual TLS is enabled.
key_filestringA TLS private key used for client authentication, if mutual TLS is enabled.
enable_logsbooltrueEnable to collect logs.
data_flowenumhighEnable high flow or reduced low flow.
log_formatenumdefault
access_log_pathsstrings - "/var/log/nginx/access.log*"Path to NGINX access log file(s).
error_log_pathsstrings - "/var/log/nginx/error.log*"Path to NGINX error log file(s).
start_atenumendStart reading file from 'beginning' or 'end'.

*required field