grafana/pkg/middleware
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
..
cookies Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
auth_test.go Profile: Fixes profile preferences being accessible when anonymous access was enabled (#31516) 2021-02-27 18:04:28 +01:00
auth.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
csp.go Chore: remove CSP debug logging line (#30689) 2021-01-27 13:31:41 -08:00
dashboard_redirect_test.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
dashboard_redirect.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
gziper.go live: fix writing headers in hijacked connection with gzip enabled (#32310) 2021-03-25 21:36:52 +03:00
logger.go Move middleware context handler logic to service (#29605) 2020-12-11 11:44:44 +01:00
middleware_basic_auth_test.go Move middleware context handler logic to service (#29605) 2020-12-11 11:44:44 +01:00
middleware_jwt_auth_test.go Auth: support JWT Authentication (#29995) 2021-03-31 08:40:44 -07:00
middleware_test.go Auth: support JWT Authentication (#29995) 2021-03-31 08:40:44 -07:00
middleware.go Profile: Fixes profile preferences being accessible when anonymous access was enabled (#31516) 2021-02-27 18:04:28 +01:00
org_redirect_test.go middleware: Make scenario test functions take a testing.T argument (#29564) 2020-12-04 11:09:32 +01:00
org_redirect.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
quota_test.go [Alerting]: Extend quota service to optionally set limits on alerts (#33283) 2021-05-04 19:16:28 +03:00
quota.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
rate_limit_test.go Move middleware context handler logic to service (#29605) 2020-12-11 11:44:44 +01:00
rate_limit.go Logging: rate limit fronted logging endpoint (#29272) 2020-12-09 16:22:24 +01:00
recovery_test.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
recovery.go Backend: Migrate to using non-global configuration (#31856) 2021-03-10 12:41:29 +01:00
request_metrics.go instrumentation: align label name with our other projects (#29514) 2020-12-08 14:26:07 +01:00
request_tracing.go Chore: Improve request distributed tracing middleware (#33033) 2021-04-20 15:22:22 +02:00
testing.go Auth: support JWT Authentication (#29995) 2021-03-31 08:40:44 -07:00
validate_host.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00