master
yaml 244 lines 8.24 KB
Raw
1 plugin_name: go.d.plugin
2 modules:
3 - meta:
4 id: collector-go.d.plugin-nginxunit
5 plugin_name: go.d.plugin
6 module_name: nginxunit
7 monitored_instance:
8 name: NGINX Unit
9 link: https://unit.nginx.org/
10 categories:
11 - data-collection.web-servers-and-proxies
12 icon_filename: nginx.svg
13 related_resources:
14 integrations:
15 list: []
16 alternative_monitored_instances: []
17 info_provided_to_referring_integrations:
18 description: ""
19 keywords:
20 - nginx
21 - unit
22 - web
23 - appserver
24 - http
25 overview:
26 data_collection:
27 metrics_description: |
28 This collector monitors the activity and performance of NGINX Unit servers, and collects metrics such as the number of connections, their status, and client requests.
29 method_description: |
30 It sends HTTP requests to the NGINX Unit [Status API](https://unit.nginx.org/statusapi/).
31 default_behavior:
32 auto_detection:
33 description: |
34 The collector can automatically detect NGINX Unit instances running on:
35
36 - localhost that are listening on port 8000
37 - within Docker containers
38 limits:
39 description: ""
40 performance_impact:
41 description: ""
42 additional_permissions:
43 description: ""
44 multi_instance: true
45 supported_platforms:
46 include: []
47 exclude: []
48 setup:
49 prerequisites:
50 list:
51 - title: Enable HTTP Control API
52 description: |
53 See [Control API](https://unit.nginx.org/controlapi/#configuration-api) documentation.
54 configuration:
55 file:
56 name: go.d/nginxunit.conf
57 options:
58 description: |
59 The following options can be defined globally: update_every, autodetection_retry.
60 folding:
61 title: Config options
62 enabled: true
63 list:
64 - name: update_every
65 description: Data collection interval (seconds).
66 default_value: 1
67 required: false
68 group: Collection
69 - name: autodetection_retry
70 description: Autodetection retry interval (seconds). Set 0 to disable.
71 default_value: 0
72 required: false
73 group: Collection
74
75 - name: url
76 description: Target endpoint URL.
77 default_value: http://127.0.0.1:8000
78 required: true
79 group: Target
80 - name: timeout
81 description: HTTP request timeout (seconds).
82 default_value: 1
83 required: false
84 group: Target
85
86 - name: username
87 description: Username for Basic HTTP authentication.
88 default_value: ""
89 required: false
90 group: HTTP Auth
91 - name: password
92 description: Password for Basic HTTP authentication.
93 default_value: ""
94 required: false
95 group: HTTP Auth
96 - name: bearer_token_file
97 description: "Path to a file containing a bearer token (used for `Authorization: Bearer`)."
98 default_value: ""
99 required: false
100 group: HTTP Auth
101
102 - name: tls_skip_verify
103 description: Skip TLS certificate and hostname verification (insecure).
104 default_value: no
105 required: false
106 group: TLS
107 - name: tls_ca
108 description: Path to CA bundle used to validate the server certificate.
109 default_value: ""
110 required: false
111 group: TLS
112 - name: tls_cert
113 description: Path to client TLS certificate (for mTLS).
114 default_value: ""
115 required: false
116 group: TLS
117 - name: tls_key
118 description: Path to client TLS private key (for mTLS).
119 default_value: ""
120 required: false
121 group: TLS
122
123 - name: proxy_url
124 description: HTTP proxy URL.
125 default_value: ""
126 required: false
127 group: Proxy
128 - name: proxy_username
129 description: Username for proxy Basic HTTP authentication.
130 default_value: ""
131 required: false
132 group: Proxy
133 - name: proxy_password
134 description: Password for proxy Basic HTTP authentication.
135 default_value: ""
136 required: false
137 group: Proxy
138
139 - name: method
140 description: HTTP method to use.
141 default_value: "GET"
142 required: false
143 group: Request
144 - name: body
145 description: Request body (e.g., for POST/PUT).
146 default_value: ""
147 required: false
148 group: Request
149 - name: headers
150 description: "Additional HTTP headers (one per line as key: value)."
151 default_value: ""
152 required: false
153 group: Request
154 - name: not_follow_redirects
155 description: Do not follow HTTP redirects.
156 default_value: no
157 required: false
158 group: Request
159 - name: force_http2
160 description: Force HTTP/2 (including h2c over TCP).
161 default_value: no
162 required: false
163 group: Request
164
165 - name: vnode
166 description: Associates this data collection job with a [Virtual Node](https://learn.netdata.cloud/docs/netdata-agent/configuration/organize-systems-metrics-and-alerts#virtual-nodes).
167 default_value: ""
168 required: false
169 group: Virtual Node
170 examples:
171 folding:
172 title: Config
173 enabled: true
174 list:
175 - name: Basic
176 description: A basic example configuration.
177 folding:
178 enabled: false
179 config: |
180 jobs:
181 - name: local
182 url: http://127.0.0.1:8000
183 - name: HTTP authentication
184 description: Basic HTTP authentication.
185 config: |
186 jobs:
187 - name: local
188 url: http://127.0.0.1::8000
189 username: username
190 password: password
191 - name: HTTPS with self-signed certificate
192 description: NGINX Unit with enabled HTTPS and self-signed certificate.
193 config: |
194 jobs:
195 - name: local
196 url: http://127.0.0.1:8000
197 tls_skip_verify: yes
198 - name: Multi-instance
199 description: |
200 > **Note**: When you define multiple jobs, their names must be unique.
201
202 Collecting metrics from local and remote instances.
203 config: |
204 jobs:
205 - name: local
206 url: http://127.0.0.1:8000
207
208 - name: remote
209 url: http://192.0.2.1:8000
210 troubleshooting:
211 problems:
212 list: []
213 alerts: []
214 metrics:
215 folding:
216 title: Metrics
217 enabled: false
218 description: ""
219 availability: []
220 scopes:
221 - name: global
222 description: These metrics refer to the entire monitored application.
223 labels: []
224 metrics:
225 - name: nginxunit.requests_rate
226 description: Requests
227 unit: requests/s
228 chart_type: line
229 dimensions:
230 - name: requests
231 - name: nginxunit.connections_rate
232 description: Connections
233 unit: connections/s
234 chart_type: stacked
235 dimensions:
236 - name: accepted
237 - name: closed
238 - name: nginxunit.connections_current
239 description: Current Connections
240 unit: connections
241 chart_type: stacked
242 dimensions:
243 - name: active
244 - name: idle