Monitor the incoming and outgoing traffic metrics in realtime for NGINX
5 — 所有核心与模块指令——语法、默认值、上下文与真实配置示例。
accounting
accounting 指令在 NGINX 的 stream 上下文中启用对进出流量指标的实时监控。
stream
accounting_id
在 NGINX 中,`accounting_id` 指令为与传入请求相关的流量计费指标设置唯一标识符。
streamstream server
accounting_interval
`accounting_interval` 指令指定 NGINX 流量记账模块中用于汇总流量指标的时间周期。
stream
accounting_log
在 NGINX 中,`accounting_log` 指令配置由 accounting 模块监控的流量指标的日志输出。
stream
accounting_perturb
`accounting_perturb` 指令用于在 NGINX 的流量统计逻辑中启用或禁用扰动。
stream