human-readable text presentation • plus: ngx_http_status_module • a lot more metrics for each function • json format • Your choice of… • Datadog, Nagios, Zabbix, etc. for open-source • Datadog for nginx plus nginx status collector aggregator UI/alerts
resource • Focus on work because work == value • Resource analysis useful to understand performance • Use Brendan Gregg’s USE • Utilization (% over time) • Saturation (queue length) • Errors (count over time) 2. Type • Gauge: sample • Counter: accumulated sample, needs to be derived to be meaningful http://www.brendangregg.com/usemethod.html
reading, writing, idle Accepted connections Counter Resource Handled connections Counter Resource <= accepted if resource limit Requests Counter Work True purpose of the server •Latency must be measured using logs or statsd.
Work without log analysis 5xx/sum(Nxx) Gauge Work error rate % idle/dropped connections Gauge Resource saturation active/total connections Gauge Resource upstream capacity Requests Counter Work true purpose of the server • Latency must be measured using logs or statsd.