Nginx Stats


Nginx Stats Dashboard using CollectD and Graphite
Last updated: 4 years ago

Start with Grafana Cloud and the new FREE tier. Includes 10K series Prometheus or Graphite Metrics and 50gb Loki Logs

Downloads: 3445

Reviews: 0

  • 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;
    deny all;

Configure CollectD

The relevant parts for this dashboard is

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

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:

Get this dashboard: