nginx_statsd_sidecar
Current version is 0.2.1.
nginx_statsd_sidecar is a Docker container that runs as a sidecar to
nginx. It scrapes the stats from the ngx_http_stub_status_module and forwards
them to statsd. This is useful for both
server-bound and serverless (e.g. ECS Fargate) services, where you don’t have
access to the underlying server filesystem and processes.
nginx_statsd_sidecar polls stats from nginx every 10 seconds (this is
configurable via an environment variable) and reports stats to statsd (with
a configurable prefix).
requeststhe number of requests thatnginxhas handled since the last timenginx_statsd_sidecarretrieved stats fromnginxactive_connectionsthe number of currently activenginxconnectionsreadingthe number of activenginxconnections in reading statewritingthe number of activenginxconnections in writing statewaitingthe number of activenginxconnections in waiting state
If your prefix is myapp.nginx, then the stats will be reported to statsd as follows:
stats.myapp.nginx.requestsstats.myapp.nginx.active_connectionsstats.myapp.nginx.workers.readingstats.myapp.nginx.workers.writingstats.myapp.nginx.workers.waiting
Architectures
nginx_statsd_sidecar is available for the following architectures:
linux/amd64linux/arm64
Getting Started
To get started with nginx_statsd_sidecar:
Installation: Follow the Installation Guide guide
Quick Start: See the Quickstart Guide guide for basic usage
Configuration: Learn about configuration options in Configuration
FAQ: Check the Frequently Asked Questions section for common questions and troubleshooting
For developers, see the Contributing and Coding Standards guides.