grafana/pkg/services/ngalert/api
Sofia Papagiannaki 540f110220
[Alerting]: Extend quota service to optionally set limits on alerts (#33283)
* Quota: Extend service to set limit on alerts

* Add test for applying quota to alert rules

* Apply suggestions from code review

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

* Get used alert quota only if naglert is enabled

* Set alert limit to zero if nglalert is not enabled
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-05-04 19:16:28 +03: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/metrics (#33547) 2021-04-30 12:28:06 -04:00
api_alertmanager.go NGAlert: Fix GET for Alertmanager config (#33379) 2021-04-27 20:48:19 +05:30
api_prometheus.go AlertingAPI: Change list response query prop (#33419) 2021-04-27 22:15:00 +02:00
api_ruler.go [Alerting]: Extend quota service to optionally set limits on alerts (#33283) 2021-05-04 19:16:28 +03:00
api_testing.go Alerting: validate condition before updating rulegroup (#33367) 2021-04-28 11:31:51 +03:00
api.go [Alerting]: Extend quota service to optionally set limits on alerts (#33283) 2021-05-04 19:16:28 +03:00
fork_ruler.go [Alerting] Automatic request instrumentation (#33444) 2021-04-28 16:59:15 -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 Alerting/metrics (#33547) 2021-04-30 12:28:06 -04:00
generated_base_api_prometheus.go Alerting/metrics (#33547) 2021-04-30 12:28:06 -04:00
generated_base_api_ruler.go Alerting/metrics (#33547) 2021-04-30 12:28:06 -04:00
generated_base_api_testing.go Alerting/metrics (#33547) 2021-04-30 12:28:06 -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: validate condition before updating rulegroup (#33367) 2021-04-28 11:31:51 +03:00