Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ Before you start, make sure that you have:
The following table lists the NGINX Agent features:

{{< table "features" >}}

| Feature Name | Description | Default |
| ------------------- | --------------------------------------------------------------------------- | ------- |
| configuration | Full read/write management of configurations, controlled by DataPlaneConfig ConfigMode. | On |
| certificates | Inclusion of public keys and other certificates in the configurations toggled by DataPlaneConfig CertMode | On |
| file-watcher | Monitoring of file changes in the allowed directories list and references from product configs. | On |
| metrics | Full metrics reporting. | On
| logs-nap | F5 WAF for NGINX logs. | On |

{{< /table >}}

## Configuration sources
Expand Down Expand Up @@ -87,3 +89,16 @@ Define features in the `nginx-agent.conf` file:

Once the steps have been completed, users will be able to view metrics data being sent but will not have the capability to push NGINX configuration changes.

{{<call-out "note" "Note: NGINX Access Log Metrics" >}} For collecting metrics from NGINX access logs, ensure that following log format is used in the NGINX configuration:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{<call-out "note" "Note: NGINX Access Log Metrics" >}} For collecting metrics from NGINX access logs, ensure that following log format is used in the NGINX configuration:
{{<call-out "note" "Note: NGINX Open Source Metrics" >}} For collecting metrics from NGINX Open Source, ensure that following log format is used in the NGINX configuration:


```nginx
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'"$bytes_sent" "$request_length" "$request_time" '
'"$gzip_ratio" $server_protocol ';

access_log /var/log/nginx/access.log main;
```

{{</call-out>}}