You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where `<nginx>` is the path to unix domain socket, through which NGINX stub status is available.
62
+
57
63
**Note**. The `nginx-prometheus-exporter` is not a daemon. To run the exporter as a system service (daemon), configure the init system of your Linux server (such as systemd or Upstart) accordingly. Alternatively, you can run the exporter in a Docker container.
58
64
59
65
## Usage
@@ -69,14 +75,14 @@ Usage of ./nginx-prometheus-exporter:
69
75
-nginx.retry-interval duration
70
76
An interval between retries to connect to the NGINX stub_status page/NGINX Plus API on start. The default value can be overwritten by NGINX_RETRY_INTERVAL environment variable. (default 5s)
71
77
-nginx.scrape-uri string
72
-
A URI for scraping NGINX or NGINX Plus metrics.
78
+
A URI or unix domain socket path for scraping NGINX or NGINX Plus metrics.
73
79
For NGINX, the stub_status page must be available through the URI. For NGINX Plus -- the API. The default value can be overwritten by SCRAPE_URI environment variable. (default "http://127.0.0.1:8080/stub_status")
74
80
-nginx.ssl-verify
75
81
Perform SSL certificate verification. The default value can be overwritten by SSL_VERIFY environment variable. (default true)
76
82
-nginx.timeout duration
77
83
A timeout for scraping metrics from NGINX or NGINX Plus. The default value can be overwritten by TIMEOUT environment variable. (default 5s)
78
84
-web.listen-address string
79
-
An address to listen on for web interface and telemetry. The default value can be overwritten by LISTEN_ADDRESS environment variable. (default ":9113")
85
+
An address or unix domain socket path to listen on for web interface and telemetry. The default value can be overwritten by LISTEN_ADDRESS environment variable. (default ":9113")
80
86
-web.telemetry-path string
81
87
A path under which to expose metrics. The default value can be overwritten by TELEMETRY_PATH environment variable. (default "/metrics")
"An address to listen on for web interface and telemetry. The default value can be overwritten by LISTEN_ADDRESS environment variable.")
171
+
"An address or unix domain socket path to listen on for web interface and telemetry. The default value can be overwritten by LISTEN_ADDRESS environment variable.")
132
172
metricsPath=flag.String("web.telemetry-path",
133
173
defaultMetricsPath,
134
174
"A path under which to expose metrics. The default value can be overwritten by TELEMETRY_PATH environment variable.")
@@ -137,8 +177,8 @@ var (
137
177
"Start the exporter for NGINX Plus. By default, the exporter is started for NGINX. The default value can be overwritten by NGINX_PLUS environment variable.")
138
178
scrapeURI=flag.String("nginx.scrape-uri",
139
179
defaultScrapeURI,
140
-
`A URI for scraping NGINX or NGINX Plus metrics.
141
-
For NGINX, the stub_status page must be available through the URI. For NGINX Plus -- the API. The default value can be overwritten by SCRAPE_URI environment variable.`)
180
+
`A URI or unix domain socket path for scraping NGINX or NGINX Plus metrics.
181
+
For NGINX, the stub_status page must be available through the URI. For NGINX Plus -- the API. The default value can be overwritten by SCRAPE_URI environment variable.`)
142
182
sslVerify=flag.Bool("nginx.ssl-verify",
143
183
defaultSslVerify,
144
184
"Perform SSL certificate verification. The default value can be overwritten by SSL_VERIFY environment variable.")
0 commit comments