Stats socket reporting empty stats

I have a multi-file haproxy configuration that looks something like this:

Global config file:

global
        log /dev/log local0
        log /dev/log local1 notice
        chroot /var/lib/haproxy
        # used for newer reload mechanism
        stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
        stats timeout 30s
        user haproxy
        group haproxy
        daemon
        maxconn 2000

defaults
        log global
        mode http
        option httplog
        option dontlognull
        timeout connect 5000
        errorfile 400 /etc/haproxy/errors/400.http
        errorfile 403 /etc/haproxy/errors/403.http
        errorfile 408 /etc/haproxy/errors/408.http
        errorfile 500 /etc/haproxy/errors/500.http
        errorfile 502 /etc/haproxy/errors/502.http
        errorfile 503 /etc/haproxy/errors/503.http
        errorfile 504 /etc/haproxy/errors/504.http

Example redis listener file:

listen redis
       bind localhost:6379
       mode tcp
       option tcplog
       server redis001 <internal_redis_host>:6379 check

I am running haproxy using the -f with a path to the folder containing the configuration files.

For some reason, when I query my stats, HAproxy is reporting 0 bytes in/out for my redis backend, even though I am confident that data is flowing through this listener. Other listeners (for example, my PostgreSQL listener), are reporting ok. Any ideas?

Hi,

For long term connections, you might want to enable this feature:

https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#4.2-option%20contstats

Baptiste