alertmanager/matchers
George Robinson cab8ecbc95
Change compat metrics to counters (#3686)
This commit changes the metrics in the compat package from gauges
to counters. The reason for this is that in some cases the gauge
should behave like a gauge (i.e. loading configurations) but in
other cases should behave like a counter (i.e. HTTP requests).

Second, because the compat package is a global package
(due to how config.Load works), in tenanted systems like Cortex
and Mimir it was non-trivial to reset the gauges per tenant
each time their configuration was reloaded.

Instead, it's easier to compute the rate of increase as 0 instead
of check that the gauge is 0 to know if UTF-8 strict mode can be
enabled.

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-01-30 10:22:00 +00:00
..
compat Change compat metrics to counters (#3686) 2024-01-30 10:22:00 +00:00
compliance Support UTF-8 label matchers: Do not allow unquoted escape sequences (#3571) 2023-10-30 13:56:54 +00:00
parse golangci-lint: enable testifylint linter 2023-12-10 08:50:03 +00:00