Missing prometheus _server_http_responses_total

After installing haproxy 2.8 2.8.3-1~bpo12+1, released 2023/09/08, I noticed that the Prometheus metric haproxy_server_http_responses_total is missing when scraping /metrics.

Server works and respond to queries, wondering if something changed or needs to be implemented in the configuration, just in case this is the configuration I am using:


listen stats
    bind :::8000 v4v6 ssl crt /etc/haproxy/certs/

    # ping healthcheck no Auth
    http-request use-service lua.healthcheck if { path /ping }

    # Basic AUth
    acl AUTH http_auth(stats-auth)
    http-request auth realm metrics if !AUTH

    # prometheus
    http-request use-service prometheus-exporter if { path /metrics }

    # stats
    stats enable
    stats http-request auth unless AUTH
    stats refresh 10s
    stats show-legends
    stats show-node
    stats uri /

Looks like all haproxy_server_* metrics are missing. Can you file a bug on github?

missing prometheus haproxy_server_http_responses_total · Issue #2307 · haproxy/haproxy · GitHub hope is ok

1 Like