Nginx Stats

Dashboard

Nginx Stats Dashboard using CollectD and Graphite
Last updated: 10 months ago

Downloads: 1060

  • nginx_stats.png
    nginx_stats.png

Basic Nginx Stats Dashboard.

Metrics shown

  • Requests/s
  • Connection state breakdown
  • Connections handled vs accepted

Configure Nginx

You need to enable stub_status module in a location to make metrics available for collectd.

location /nginx_status {
    stub_status on;
    access_log off;
    allow 127.0.0.1;
    deny all;
}

Configure CollectD

The relevant parts for this dashboard is

LoadPlugin nginx
<Plugin "nginx">
    URL "http://localhost:8080/nginx_status"
</Plugin>

Metric Prefix

When you import the dasbhoard you will have to specify your collectd metric prefix, this is by defauilt just collectd. The dashboard assumes the following metric structure $prefix.$server.nginx.... So if you have a non standard collectd prefix like prod.cacheservers then specify that in the prefix field when you import the dashboard. During import when you specify the prefix do not include the last dot (.).

Make this dashboard better

For feedback and ideas to improve this dashboard please open an issue here: https://github.com/torkelo/dashboards

Dependencies: