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
- Add missing scrape_interval parameter (default: 5s)
- Add TLS/SSL configuration section
- Add info hint about metrics pipeline separation
- Alphabetize and lowercase config parameter names
- Fix NGINX config comment syntax (// → #)
- Standardize indentation to 2 spaces in .conf examples
- Minor style improvements for consistency with other input docs
Signed-off-by: Eric D. Schabell <eric@schabell.org>
|`host`| Name of the target host or IP address. |`localhost`|
18
+
|`nginx_plus`| Turn on NGINX Plus mode. |`true`|
19
+
|`port`| Port of the target NGINX service to connect to. |`80`|
20
+
|`scrape_interval`| The interval to scrape metrics from the NGINX service. |`5s`|
21
+
|`status_url`| The URL of the stub status handler. |`/status`|
22
+
|`threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
23
+
24
+
### TLS / SSL
25
+
26
+
The NGINX exporter metrics input plugin supports TLS/SSL. For more details about the properties available and general configuration, refer to [Transport Security](../../administration/transport-security.md).
16
27
17
28
## Get started
18
29
19
-
NGINX must be configured with a location that invokes the stub status handler. Here is an example configuration with such a location:
30
+
NGINX must be configured with a location that invokes the stub status handler. The following is an example configuration with such a location:
20
31
21
32
```text
22
33
server {
@@ -27,7 +38,7 @@ server {
27
38
root /usr/share/nginx/html;
28
39
index index.html index.htm;
29
40
}
30
-
// configure the stub status handler.
41
+
# Configure the stub status handler.
31
42
location /status {
32
43
stub_status;
33
44
}
@@ -44,12 +55,11 @@ server {
44
55
listen [::]:80;
45
56
server_name localhost;
46
57
47
-
# enable /api/ location with appropriate access control in order
48
-
# to make use of NGINX Plus API
49
-
#
58
+
# Enable /api/ location with appropriate access control in order
59
+
# to make use of NGINX Plus API.
50
60
location /api/ {
51
61
api write=on;
52
-
# configure to allow requests from the server running fluent-bit
62
+
# Configure to allow requests from the server running Fluent Bit.
53
63
allow 192.168.1.*;
54
64
deny all;
55
65
}
@@ -64,7 +74,7 @@ From the command line you can let Fluent Bit generate the checks with the follow
0 commit comments