sysulq / nginx-vts-exporter

Simple server that scrapes Nginx vts stats and exports them via HTTP for Prometheus consumption
https://sysulq.github.io/nginx-vts-exporter/
MIT License
645 stars 142 forks source link

Fix for mixed metric types in server connection panel #53

Closed rokka closed 6 years ago

rokka commented 6 years ago

The server connection panel uses irate on the metric nginx_server_connections. But this metrics contains counters for the statuses "accepted", "handled" and "requests" and gauges for "active", "reading", "writing", "waiting". Using irate over all of them leads to unusable results.