summaryrefslogtreecommitdiff
path: root/include/haproxy
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2023-05-17 09:05:20 +0200
committerWilly Tarreau <w@1wt.eu>2023-05-17 09:33:54 +0200
commit5723b382ed57f9d7b09ddfc449ed4d3072f17e6c (patch)
tree523df9b3c768064d55b9ab103d76ea0ebc1c4639 /include/haproxy
parentda4aa6905c5524a30709eb4cdf25e22fc63eb86e (diff)
downloadhaproxy-5723b382ed57f9d7b09ddfc449ed4d3072f17e6c.tar.gz
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.
Diffstat (limited to 'include/haproxy')
-rw-r--r--include/haproxy/stats-t.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/haproxy/stats-t.h b/include/haproxy/stats-t.h
index 663641615..07eaf6d50 100644
--- a/include/haproxy/stats-t.h
+++ b/include/haproxy/stats-t.h
@@ -345,6 +345,7 @@ enum info_field {
INF_TAINTED,
INF_WARNINGS,
INF_MAXCONN_REACHED,
+ INF_BOOTTIME_MS,
/* must always be the last one */
INF_TOTAL_FIELDS