grafana/pkg/services/ngalert/notifier
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
..
channels Alerting: Fix notifier tests to close the temp file (#38992) 2021-09-09 09:56:42 -04:00
alertmanager_test.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
alertmanager.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
alerts.go Alerting: A better and cleaner way to know if Alertmanager is initialised (#36659) 2021-07-12 18:53:01 +05:30
available_channels.go Alerting: Add support for configuring avatar URL for the Discord notifier (#33355) 2021-05-28 23:00:21 +02:00
config_test.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
config.go NGAlert: Consolidate on standard errors package (#33249) 2021-04-22 11:18:25 +02:00
file_store_test.go Alerting: Persist notification log and silences to the database (#39005) 2021-09-09 17:25:22 +01:00
file_store.go Alerting: Persist notification log and silences to the database (#39005) 2021-09-09 17:25:22 +01:00
multiorg_alertmanager_test.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
multiorg_alertmanager.go Alerting: Refactor & fix unified alerting metrics structure (#39151) 2021-09-14 12:55:01 +01:00
receivers_test.go Contact point testing (#37308) 2021-08-17 13:49:05 +01:00
receivers.go Alerting: Fix flake on test receiver tests (#38511) 2021-08-24 17:22:11 +01:00
silences.go NGAlert: Consolidate on standard errors package (#33249) 2021-04-22 11:18:25 +02:00
status.go Contact point testing (#37308) 2021-08-17 13:49:05 +01:00
testing.go Alerting: Persist notification log and silences to the database (#39005) 2021-09-09 17:25:22 +01:00