Skip to content

Latest commit

 

History

History

nginx

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

nginx

The following dashboards are provided for use with data from the Telegraf nginx input.

NGiNX: Connections

The Connections dashboard allows users to investigate an NGiNX server's connection volume.

Template variables are provided to allow easy selection of the NGiNX server to be viewed.

NGiNX: Connections

NGiNX Server Configuration

The NGiNX server must be configured to load the stub_status module. The following example will make the statistics available at /nginx_status.

location /nginx_status {
  stub_status;
  allow 127.0.0.1;
  allow 192.168.0.0/16;
  allow 10.0.0.0/16;
  deny all;
}

Telegraf Input Configuration

The following input plugin configuration is required to provide the data for these dashboards.

[[inputs.nginx]]
  # An array of Nginx stub_status URI to gather stats.
  urls = ["http://192.0.2.11/nginx_status"]

  # Optional TLS Config
  #tls_ca = "/etc/telegraf/ca.pem"
  #tls_cert = "/etc/telegraf/cert.cer"
  #tls_key = "/etc/telegraf/key.key"
  
  # Use TLS but skip chain & host verification
  insecure_skip_verify = true

  # HTTP response timeout (default: 5s)
  response_timeout = "5s"