]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: report the boot time in "show info"
authorWilly Tarreau <w@1wt.eu>
Wed, 17 May 2023 07:05:20 +0000 (09:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 May 2023 07:33:54 +0000 (09:33 +0200)
commit5723b382ed57f9d7b09ddfc449ed4d3072f17e6c
tree523df9b3c768064d55b9ab103d76ea0ebc1c4639
parentda4aa6905c5524a30709eb4cdf25e22fc63eb86e
MINOR: stats: report the boot time in "show info"

Just like we have the uptime in "show info", let's add the boot time.
It's trivial to collect as it's just the difference between the ready
date and the start date, and will allow users to monitor this element
in order to take action before it starts becoming problematic. Here
the boot time is reported in milliseconds, so this allows to even
observe sub-second anomalies in startup delays.
include/haproxy/stats-t.h
src/stats.c