grafana/pkg/services/ngalert/notifier
Owen Diehl 5e48b54549
Alerting/metrics (#33547)
* moves alerting metrics to their own pkg

* adds grafana_alerting_alerts (by state) metric

* alerts_received_{total,invalid}

* embed alertmanager alerting struct in ng metrics & remove duplicated notification metrics (already embed alertmanager notifier metrics)

* use silence metrics from alertmanager lib

* fix - manager has metrics

* updates ngalert tests

* comment lint
Signed-off-by: Owen Diehl <ow.diehl@gmail.com>

* cleaner prom registry code

* removes ngalert global metrics

* new registry use in all tests

* ngalert metrics impl service, hack testinfra code to prevent duplicate metric registrations

* nilmetrics unexported
2021-04-30 12:28:06 -04:00
..
channels AlertingNG: Add webhook notification channel (#33229) 2021-04-23 18:59:28 +05:30
alertmanager_test.go Alerting/metrics (#33547) 2021-04-30 12:28:06 -04:00
alertmanager.go Alerting/metrics (#33547) 2021-04-30 12:28:06 -04:00
alerts.go NGAlert: Consolidate on standard errors package (#33249) 2021-04-22 11:18:25 +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
database_migrations.go Alerting: Fetch configuration from the database and run a notification service (#32175) 2021-03-24 14:20:44 +00:00
settings.go AlertingNG: Add alert provider and basic structure with dispatcher, silences and delivery stages (#31833) 2021-03-16 10:44:52 +01:00
silences.go NGAlert: Consolidate on standard errors package (#33249) 2021-04-22 11:18:25 +02:00