Slide 78
Slide 78 text
output {
statsd {
type => "haproxy-http-log"
exclude_tags => ["_grokparsefailure"]
host => "localhost"
port => 8125
namespace => "lb"
sender => ""
increment => [
! ! "haproxy.%{backend_name}.%{server_name}.%
{client_ip}.hits",
! ! "haproxy.%{backend_name}.%{server_name}.%
{client_ip}.responses.%{http_status_code}"
! ! ]
timing => [
"haproxy.%{backend_name}.%{server_name}.%
{client_ip}.time_request", "%{time_request}",
"haproxy.%{backend_name}.%{server_name}.%
{client_ip}.time_backend_connect", "%{time_backend_connect}",
"haproxy.%{backend_name}.%{server_name}.%
{client_ip}.time_backend_response", "%{time_backend_response}",
"haproxy.%{backend_name}.%{server_name}.%
{client_ip}.time_queue", "%{time_queue}",
"haproxy.%{backend_name}.%{server_name}.%
{client_ip}.time_duration", "%{time_duration}"
]
}
}
example config