MINOR: contrib/prometheus-exporter: Add promex_metric struct defining a metric
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 Jan 2021 14:19:12 +0000 (15:19 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Jan 2021 17:59:30 +0000 (18:59 +0100)
commit0312c0d1922103c89905025236c70a4f147f3b01
treebf453ab94d7da7a1f59504657827917bcbf4b296
parentb713c4f2951b52681e89208884b723d0434cd81d
MINOR: contrib/prometheus-exporter: Add promex_metric struct defining a metric

This structure will be used to define a Prometheus metric, i.e its name, its
type (gauge or counter) and its flags. The flags will be used to know for
which entities the metric is defined (global, frontend, backend and/or server).
contrib/prometheus-exporter/service-prometheus.c