grafana/pkg/services/ngalert/metrics
George Robinson c8ccc4649c
Alerting: Support UTF-8 (#81512)
This pull request updates our fork of Alertmanager to commit 65bdab0, which is based on commit 5658f8c in Prometheus Alertmanager.

It applies the changes from grafana/alerting#155 which removes the overrides for validation of alerts, labels and silences that we had put in place to allow alerts and silences to work for non-Prometheus datasources. However, as this is now supported in Alertmanager with the UTF-8 work, we can use the new upstream functions and remove these overrides.

The compat package is a package in Alertmanager that takes care of backwards compatibility when parsing matchers, validating alerts, labels and silences. It has three modes: classic mode, UTF-8 strict mode, fallback mode. These modes are controlled via compat.InitFromFlags. Grafana initializes the compat package without any feature flags, which is the equivalent of fallback mode. Classic and UTF-8 strict mode are used in Mimir.

While Grafana Managed Alerts have no need for fallback mode, Grafana can still be used as an interface to manage the configurations of Mimir Alertmanagers and view configurations of Prometheus Alertmanager, and those installations might not have migrated or being running on older versions. Such installations behave as if in classic mode, and Grafana must be able to parse their configurations to interact with them for some period of time. As such, Grafana uses fallback mode until we are ready to drop support for outdated installations of Mimir and the Prometheus Alertmanager.
2024-02-06 08:33:47 +00:00
..
alertmanager.go Alerting: Support UTF-8 (#81512) 2024-02-06 08:33:47 +00:00
api.go Alerting: Refactor metrics/ngalert.go into seperate files (#62362) 2023-01-27 18:49:49 +00:00
historian.go Swap weaveworks/common utilities for equivalents in grafana/dskit (#80051) 2024-01-05 10:08:38 -06:00
multi_org_alertmanager.go Alerting: Add metric for inhibition rules (#81119) 2024-01-23 19:43:17 +00:00
ngalert.go Alerting: Add metrics to the remote Alertmanager struct (#79835) 2024-01-10 11:18:24 +01:00
remote_alertmanager.go Alerting: Add metrics to the remote Alertmanager struct (#79835) 2024-01-10 11:18:24 +01:00
scheduler.go Alerting: Add metric counting rule groups per org (#80669) 2024-01-16 16:35:56 -06:00
state.go Alerting: Add a feature flag to periodically save states (#80987) 2024-01-23 17:03:30 +01:00
util.go Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00