grafana/pkg/services/ngalert/api/tooling
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
..
cmd/clean-swagger Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
definitions [Alerting]: Add alerting endpoint for Query Evaluation (#33174) 2021-04-21 22:44:50 +03:00
swagger-codegen/templates Alerting/metrics (#33547) 2021-04-30 12:28:06 -04:00
index.html Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
Makefile AlertingAPI: update swagger json files match datasourceUid change (#33332) 2021-04-27 16:50:30 +02:00
post.json AlertingAPI: update swagger json files match datasourceUid change (#33332) 2021-04-27 16:50:30 +02:00
README.md Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
spec.json AlertingAPI: update swagger json files match datasourceUid change (#33332) 2021-04-27 16:50:30 +02:00

What

view api

This aims to define the unified alerting API as code. It generates OpenAPI definitions from go structs

Running

make openapi

Requires