OpenMetrics is rather strict about naming metricsets.
authorclaudio <claudio@openbsd.org>
Tue, 6 Dec 2022 17:38:41 +0000 (17:38 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 6 Dec 2022 17:38:41 +0000 (17:38 +0000)
commit0584fd6289e1e8e7fb91651556141fbc5687b992
tree1ee19488de169b178966fd52527d3627dbf50d44
parent0b3164605888c3202398a95dc72ed70d00aab0f1
OpenMetrics is rather strict about naming metricsets.
Add a function that a) verifies that none of the special suffixes is used
and b) that the name itself is not yet used already.
Also when printing a counter _total has to be added to the metric name and
for info metrics _info is added.
With and OK tb@
usr.sbin/bgpctl/ometric.c
usr.sbin/bgpctl/output_ometric.c