vhost_traffic_status_dump

The `vhost_traffic_status_dump` directive is used to enable or disable the operation of the virtual host traffic status dump feature.

Syntaxvhost_traffic_status_dump on | off;
Defaultnone
Contexthttp
Arguments1-2

Description

The vhost_traffic_status_dump directive within the NGINX virtual host traffic status module specifies how the module gathers and displays traffic statistics for each virtual host. By default, it is set to none, meaning no dump of statistics will occur unless explicitly enabled. The directive accepts one to two positional arguments: it can take either a single argument to set it to true or false or it can be followed by additional configurations for more granular control over the data being dumped. It is particularly useful for operators wanting to analyze performance and traffic patterns on their web servers.

When enabled, a summary of the traffic statistics across all virtual hosts can be requested, which helps in monitoring and troubleshooting the server's behavior in real-time. This directive is especially beneficial in high-traffic scenarios where static measurements of traffic may not suffice for operational needs. It provides real-time visibility into the status of requests being processed, including metrics like request count, response time, and error rates, thus offering valuable insights into host performance and user engagement.

Config Example

http {
    vhost_traffic_status_zone;
    vhost_traffic_status_dump on;
}

Ensure that you have defined vhost_traffic_status_zone before using this directive.

If this directive is set to 'off', no data will be available for traffic statistics, potentially leading to confusion in monitoring.

This directive may impact performance if set to 'on' due to the additional overhead of collecting and dumping traffic statistics.

← Back to all directives