BUG/MINOR: contrib/prometheus-exporter: Return the time averages in seconds
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 24 Sep 2019 14:35:19 +0000 (16:35 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Sep 2019 06:49:49 +0000 (08:49 +0200)
commitaf4bf14183ccfac8b06a009178e2ae32cea8de4e
treec0e574ac5de85bd8a94d1a5fe8a099ce5d276baf
parent88a0db28aeb45e451d36645612e11cd284cc7ef4
BUG/MINOR: contrib/prometheus-exporter: Return the time averages in seconds

The metrics QTIME, CTIME, RTIME and TTIME are now returned in seconds using a
float representation instead of in milliseconds. So these metrics are now
consistent with their announced type and respect Prometheus naming conventions.

This patch fixes the issue #288. It may be backported to 2.0. If so, the
previous patch, introducing the support for float fields in stats is mantatory
and should be backported first.
contrib/prometheus-exporter/service-prometheus.c