]> git.kaiwu.me - haproxy.git/commit
MINOR: cache: add a counter for cache hits serving early hints
authorMaxime Henrion <mhenrion@haproxy.com>
Tue, 7 Jul 2026 13:10:59 +0000 (09:10 -0400)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Jul 2026 14:42:35 +0000 (16:42 +0200)
commit6f8c422252cece0875d4e98e5808376a7686ecf5
tree8fe3249f0d86ccea14f6809ca7aca0183976ed1b
parent25fcee5b0c72006c682a36c1b1925384bd892275
MINOR: cache: add a counter for cache hits serving early hints

Add a cache_hint_hits counter to the per-proxy HTTP stats, incremented
each time the cache emits a 103 Early Hints response. It is reported
in the CSV/typed outputs, on the stats page next to the cache hits,
and exported to prometheus as http_cache_hint_hits_total. Since the
new field changes the shm stats file mapping, its minor version is
bumped along with the object size assertion.
addons/promex/README
addons/promex/service-prometheus.c
doc/management.txt
include/haproxy/counters-t.h
include/haproxy/stats-file-t.h
include/haproxy/stats-t.h
src/cache.c
src/stats-file.c
src/stats-html.c
src/stats-proxy.c