]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: rename ambiguous stat_l and stat_count
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Apr 2024 09:19:17 +0000 (11:19 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Apr 2024 14:25:18 +0000 (16:25 +0200)
commit02e0dd6d3043b05c873dba9fdc57c8861b157024
treed7f2234eaae5d7c4e0a2a4aff9a5ded6240b1e32
parent8fc0b1808777c9b19d8c6566c57325bdb535116e
MINOR: stats: rename ambiguous stat_l and stat_count

Statistics were extended with the introduction of stats module. This
mechanism allows to expose various metrics for several haproxy
components. As a consequence of this, some static variables were
transformed to dynamic ones to be able to regroup all statistics
definition.

Rename these variables with more explicit naming :
* stat_lines can be used to generate one line of statistics for any
  module using struct field as value
* metrics and metrics_len are used to stored description of metrics
  indexed by module

Note that info is not integrated in the statistics module mechanism.
However, it could be done in the future to better reflect its purpose.
addons/promex/service-prometheus.c
include/haproxy/stats.h
src/stats-json.c
src/stats.c