grafana/pkg/services/ngalert/api
gotjosh f83cd401e5
Alerting: Send alerts to external Alertmanager(s) (#37298)
* Alerting: Send alerts to external Alertmanager(s)

Within this PR we're adding support for registering or unregistering
sending to a set of external alertmanagers. A few of the things that are
going are:

- Introduce a new table to hold "admin" (either org or global)
  configuration we can change at runtime.
- A new periodic check that polls for this configuration and adjusts the
  "senders" accordingly.
- Introduces a new concept of "senders" that are responsible for
  shipping the alerts to the external Alertmanager(s). In a nutshell,
this is the Prometheus notifier (the one in charge of sending the alert)
mapped to a multi-tenant map.

There are a few code movements here and there but those are minor, I
tried to keep things intact as much as possible so that we could have an
easier diff.
2021-08-06 13:06:56 +01:00
..
test-data Alerting: Implement /status for the notification system (#33227) 2021-06-15 19:14:02 +03:00
tooling Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
api_admin.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
api_alertmanager.go Alerting: deactivate an Alertmanager configuration (#36794) 2021-07-16 20:07:31 +03:00
api_prometheus.go Alerting: Refactor API endpoints for fetching alert rules (#37055) 2021-07-22 09:53:14 +03:00
api_ruler.go Alerting: Refactor API endpoints for fetching alert rules (#37055) 2021-07-22 09:53:14 +03:00
api_testing.go Alerting: Add error recovery during rule evaluations (#35450) 2021-06-15 19:30:21 +03:00
api.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
fork_ruler.go Alerting/consistent api errors (#34858) 2021-05-28 11:55:03 -04:00
forked_am.go Alerting: Implement /status for the notification system (#33227) 2021-06-15 19:14:02 +03:00
forked_prom.go Alerting/consistent api errors (#34858) 2021-05-28 11:55:03 -04:00
generated_base_api_alertmanager.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
generated_base_api_configuration.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
generated_base_api_prometheus.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
generated_base_api_ruler.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
generated_base_api_testing.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
lotex_am.go Alerting: Implement /status for the notification system (#33227) 2021-06-15 19:14:02 +03:00
lotex_prom.go Alerting/consistent api errors (#34858) 2021-05-28 11:55:03 -04:00
lotex_ruler.go Alerting/consistent api errors (#34858) 2021-05-28 11:55:03 -04:00
Makefile Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
promql_compat_test.go Alerting/testing promql extraction (#34665) 2021-05-25 11:54:50 -04:00
promql_compat.go Alerting: check upstream response content type in lotex proxy (#34760) 2021-05-27 14:12:29 +03:00
util_test.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
util.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00