grafana/pkg/services/ngalert/api
David Parrott 788bc2a793
Alerting: refactor state tracker (#33292)
* set processing time

* merge labels and set on response

* use state cache for adding alerts to rules

* minor cleanup

* add support for NoData and Error results

* rename test

* bring in changes from other PRs tha have been merged

* pr feedback

* add integration test

* close state tracker cleanup on context.Done

* fixup test

* rename state tracker

* set EvaluationDuration on Result

* default labels set as constants

* separate cache and state from manager

* use RWMutex in cache
2021-04-23 21:32:25 +02:00
..
test-data Alerting/Expr: New SSE Request/QueryType, alerting move data source UID (#33282) 2021-04-23 16:52:32 +02:00
tooling [Alerting]: Add alerting endpoint for Query Evaluation (#33174) 2021-04-21 22:44:50 +03:00
api_alertmanager.go Alerting: Various fixes for the alerts endpoint (#33182) 2021-04-21 06:34:42 -04:00
api_prometheus.go Alerting: refactor state tracker (#33292) 2021-04-23 21:32:25 +02:00
api_ruler.go [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03:00
api_testing.go [Alerting]: Add alerting endpoint for Query Evaluation (#33174) 2021-04-21 22:44:50 +03:00
api.go Alerting: refactor state tracker (#33292) 2021-04-23 21:32:25 +02:00
fork_ruler.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
forked_am.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
forked_prom.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
generated_base_api_alertmanager.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
generated_base_api_prometheus.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
generated_base_api_ruler.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
generated_base_api_testing.go [Alerting]: Add alerting endpoint for Query Evaluation (#33174) 2021-04-21 22:44:50 +03:00
legacy_api_routes.go [Alerting]: Implement test rule API route (#32837) 2021-04-13 20:58:34 +03:00
legacy_trans_dev.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
lotex_am.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
lotex_prom.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
lotex_ruler.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
Makefile Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04: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]: Add alerting endpoint for Query Evaluation (#33174) 2021-04-21 22:44:50 +03:00