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
+33-24Lines changed: 33 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ To install NGINX Agent on your system, go to [Releases](https://github.com/nginx
89
89
90
90
Use your system's package manager to install the package. Some examples:
91
91
92
-
Debian, Ubuntu, and other distributions using the `dpkg` package manager.
92
+
Debian, Ubuntu, and other distributions using the `dpkg` package manager.
93
93
94
94
```
95
95
sudo dpkg -i nginx-agent-<agent-version>.deb
@@ -121,7 +121,16 @@ To enable the NGINX Agent to start on boot, run the following command:
121
121
sudo systemctl enable nginx-agent
122
122
```
123
123
124
-
## Logging
124
+
On Alpine Linux, use the following command to start the agent:
125
+
```
126
+
sudo service nginx-agent start
127
+
```
128
+
To enable the agent to start at boot time on Alpine Linux, run this:
129
+
```
130
+
sudo rc-update add nginx-agent default
131
+
```
132
+
133
+
## Logging
125
134
NGINX Agent uses formatted log files to collect metrics. Expanding log formats and instance counts will also increase the size of NGINX Agent log files. We recommend adding a separate partition for `/var/log/nginx-agent`. Without log rotation or storage on a separate partition, log files could use up all the free drive space and cause your system to become unresponsive to certain services.
126
135
127
136
### Log Rotation
@@ -171,7 +180,7 @@ Follow steps in the [Installation](#installation) section to download, install,
171
180
Using your preferred method, clone the NGINX Agent repository into your development directory. See [Cloning a GitHub Repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) for additional help.
172
181
173
182
## Installing Go
174
-
NGINX Agent and the Mock Control Plane are written in Go. Go 1.21.0 or higher is required to build and run either application from the source code directory. You can [download Go from the official website](https://go.dev/dl/).
183
+
NGINX Agent and the Mock Control Plane are written in Go. Go 1.21.0 or higher is required to build and run either application from the source code directory. You can [download Go from the official website](https://go.dev/dl/).
175
184
176
185
## Starting the gRPC Mock Control Plane
177
186
Start the mock control plane by running the following command from the `agent` source code root directory:
@@ -185,12 +194,12 @@ INFO[0000] gRPC listening at 54789 # gRPC control plane port which NGINX Agent w
185
194
```
186
195
187
196
## NGINX Agent Settings
188
-
If it doesn't already exist, create the `/etc/nginx-agent/` directory and copy the `nginx-agent.conf` file into it from the project root directory.
197
+
If it doesn't already exist, create the `/etc/nginx-agent/` directory and copy the `nginx-agent.conf` file into it from the project root directory.
@@ -242,7 +251,7 @@ Open a web browser to view the Swagger UI at http://localhost:8082/docs.
242
251
## Extensions
243
252
An extension is a piece of code, not critical to the main functionality that the NGINX agent is responsible for. This generally falls outside the remit of managing NGINX Configuration and reporting NGINX metrics.
244
253
245
-
To enable an extension, it must be added to the extensions list in the `/etc/nginx-agent/nginx-agent.conf`.
254
+
To enable an extension, it must be added to the extensions list in the `/etc/nginx-agent/nginx-agent.conf`.
246
255
Here is an example of enabling the advanced metrics extension:
247
256
248
257
```yaml
@@ -258,24 +267,24 @@ Open another terminal window and start the NGINX Agent. Issue the following comm
258
267
sudo make run
259
268
260
269
# Command Output snippet
261
-
WARN[0000] Log level is info
262
-
INFO[0000] setting displayName to XXX
270
+
WARN[0000] Log level is info
271
+
INFO[0000] setting displayName to XXX
263
272
INFO[0000] NGINX Agent at with pid 12345, clientID=XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX name=XXX
INFO[0000] MetricsThrottle waiting for report ready
282
+
INFO[0000] Metrics waiting for handshake to be completed
283
+
INFO[0000] ProcessWatcher initializing
284
+
INFO[0000] Extensions initializing
285
+
INFO[0000] FileWatcher initializing
277
286
INFO[0000] FileWatchThrottle initializing
278
-
INFO[0001] Events initializing
287
+
INFO[0001] Events initializing
279
288
INFO[0001] OneTimeRegistration completed
280
289
```
281
290
@@ -341,15 +350,15 @@ sudo make run
341
350
## Supported Distributions
342
351
NGINX Agent can run in most environments. For a list of supported distributions, see the [NGINX Technical Specs](https://docs.nginx.com/nginx/technical-specs/#supported-distributions) guide.
343
352
344
-
## Supported Deployment Environments
353
+
## Supported Deployment Environments
345
354
NGINX Agent can be deployed in the following environments:
346
355
347
356
- Bare Metal
348
357
- Container
349
358
- Public Cloud: AWS, Google Cloud Platform, and Microsoft Azure
350
359
- Virtual Machine
351
360
352
-
## Supported NGINX Versions
361
+
## Supported NGINX Versions
353
362
NGINX Agent works with all supported versions of NGINX Open Source and NGINX Plus.
0 commit comments