MINOR: contrib/prometheus-exporter: use stats desc when possible
authorWilliam Dauchy <wdauchy@gmail.com>
Mon, 1 Feb 2021 12:11:55 +0000 (13:11 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Feb 2021 14:16:33 +0000 (15:16 +0100)
commit82b2ce2f967d967139adb7afab064416fadad615
treef605b37186c56e39469f5d2a87b60b1da545714b
parent19f7cfc8c3664c6567906164a4ba165c5dea689b
MINOR: contrib/prometheus-exporter: use stats desc when possible

It is a followup work of commit a191b77e54c26a97064cb42ab4927d4f5c95b896
("MINOR: contrib/prometheus-exporter: merge info description from
stats") but for all other stats fields; we however keep a way to
override them when needed (e.g. units, specific cases)

this is another step which will avoid duplicating work between stats.c
and prometheus.

Signed-off-by: William Dauchy <wdauchy@gmail.com>
contrib/prometheus-exporter/service-prometheus.c