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
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,12 @@ Usage of ./nginx-prometheus-exporter:
77
77
-nginx.scrape-uri string
78
78
A URI or unix domain socket path for scraping NGINX or NGINX Plus metrics.
79
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")
80
+
-nginx.ssl-ca-cert string
81
+
Path to the PEM encoded CA certificate file used to validate the servers SSL certificate. The default value can be overwritten by SSL_CA_CERT environment variable.
82
+
-nginx.ssl-client-cert string
83
+
Path to the PEM encoded client certificate file to use when connecting to the server. The default value can be overwritten by SSL_CLIENT_CERT environment variable.
84
+
-nginx.ssl-client-key string
85
+
Path to the PEM encoded client certificate key file to use when connecting to the server. The default value can be overwritten by SSL_CLIENT_KEY environment variable.
80
86
-nginx.ssl-verify
81
87
Perform SSL certificate verification. The default value can be overwritten by SSL_VERIFY environment variable. (default true)
@@ -247,6 +252,15 @@ For NGINX, the stub_status page must be available through the URI. For NGINX Plu
247
252
sslVerify=flag.Bool("nginx.ssl-verify",
248
253
defaultSslVerify,
249
254
"Perform SSL certificate verification. The default value can be overwritten by SSL_VERIFY environment variable.")
255
+
sslCaCert=flag.String("nginx.ssl-ca-cert",
256
+
defaultSslCaCert,
257
+
"Path to the PEM encoded CA certificate file used to validate the servers SSL certificate. The default value can be overwritten by SSL_CA_CERT environment variable.")
"Path to the PEM encoded client certificate file to use when connecting to the server. The default value can be overwritten by SSL_CLIENT_CERT environment variable.")
261
+
sslClientKey=flag.String("nginx.ssl-client-key",
262
+
defaultSslClientKey,
263
+
"Path to the PEM encoded client certificate key file to use when connecting to the server. The default value can be overwritten by SSL_CLIENT_KEY environment variable.")
250
264
nginxRetries=flag.Uint("nginx.retries",
251
265
defaultNginxRetries,
252
266
"A number of retries the exporter will make on start to connect to the NGINX stub_status page/NGINX Plus API before exiting with an error. The default value can be overwritten by NGINX_RETRIES environment variable.")
0 commit comments