grafana/pkg/services/ngalert/api
gotjosh a2f4344bf2
Alerting: Refactor & fix unified alerting metrics structure (#39151)
* Alerting: Refactor & fix unified alerting metrics structure

Fixes and refactors the metrics structure we have for the ngalert service. Now, each component has its own metric struct that includes the JUST the metrics it uses. Additionally, I have fixed the configuration metrics and added new metrics to determine if we have discovered and started all the necessary configurations of an instance.

This allows us to alert on `grafana_alerting_discovered_configurations - grafana_alerting_active_configurations != 0` to know whether an alertmanager instance did not start successfully.
2021-09-14 12:55:01 +01:00
..
test-data Alerting: Implement /status for the notification system (#33227) 2021-06-15 19:14:02 +03:00
tooling Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
api_admin.go Alerting: Introduces /api/v1/ngalert/alertmanagers to expose discovered and dropped Alertmanager(s) (#37632) 2021-08-13 13:14:36 +01:00
api_alertmanager_test.go Contact point testing (#37308) 2021-08-17 13:49:05 +01:00
api_alertmanager.go Macaron: remove custom Request type (#37874) 2021-09-01 11:18:30 +02: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: some fixes for updating rules via the API (#38764) 2021-09-02 19:38:42 +03:00
api_testing.go Alerting: Fix API specification (#38753) 2021-09-10 12:46:02 +03:00
api.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
fork_ruler.go Alerting/consistent api errors (#34858) 2021-05-28 11:55:03 -04:00
forked_am.go Contact point testing (#37308) 2021-08-17 13:49:05 +01:00
forked_prom.go Alerting/consistent api errors (#34858) 2021-05-28 11:55:03 -04:00
generated_base_api_alertmanager.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
generated_base_api_configuration.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
generated_base_api_prometheus.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
generated_base_api_ruler.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
generated_base_api_testing.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
lotex_am.go Contact point testing (#37308) 2021-08-17 13:49:05 +01:00
lotex_prom.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
lotex_ruler.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
Makefile Alerting: Fix API specification (#38753) 2021-09-10 12:46:02 +03: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 Macaron: remove custom Request type (#37874) 2021-09-01 11:18:30 +02:00