grafana/pkg
Alexander Weaver b926b6336d
Alerting: Scheduled recording rules execute their queries (#88309)
* Basic eval flow

* Wiring-up

* fix

* Extend todo

* Start with tests

* Include some relevant tests, skip ones that seem to have timing-based race conditions

* Some tests, touch up linter and todo

* Solve TODO

* Add tracing

* Tests to make sure an eval went through

* Wire up feature toggles

* Update pkg/services/ngalert/schedule/recording_rule.go

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>

* Update pkg/services/ngalert/schedule/recording_rule_test.go

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>

* Update pkg/services/ngalert/schedule/recording_rule_test.go

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>

* Update pkg/services/ngalert/schedule/recording_rule_test.go

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>

---------

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>
2024-05-28 10:59:21 -05:00
..
api Refactor plugin context initialization (#88343) 2024-05-28 16:59:06 +03:00
apimachinery Prometheus: Update dependency to v0.52.0 (#87809) 2024-05-28 15:22:20 +02:00
apis Scopes: Change JS linkID to linkId (#87831) 2024-05-14 11:01:21 -04:00
apiserver Add latency metrics to mode2 (#88011) 2024-05-28 16:15:53 +02:00
build Prometheus: Update dependency to v0.52.0 (#87809) 2024-05-28 15:22:20 +02:00
bus Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
cmd RBAC: Expand action sets when fetching permissions (#87967) 2024-05-21 15:09:26 +01:00
codegen Chore: Upgrade/fix deps after thema removal (#86763) 2024-04-25 20:52:09 +02:00
components Chore: Bump google.golang.org/grpc to 1.64.0 (#88219) 2024-05-27 12:44:39 +02:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr Plugins: Support Admission validation hooks (#87718) 2024-05-24 18:45:16 +03:00
extensions Caching: Implement mtls-enabled memcached integration (#84171) 2024-05-09 15:12:08 -04:00
generated K8s: update hack codegen script (#81216) 2024-01-25 12:01:09 -08:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra Tracing: Various improvements (#88308) 2024-05-27 14:21:40 +02:00
kinds Schemas: Replace registry generation and github workflow (#83490) 2024-03-13 18:05:21 +02:00
login/social OIDC: Support Generic OAuth org to role mappings (#87394) 2024-05-23 09:55:45 +02:00
middleware Fix: Proper plugin logo loading depending on staging (#88247) 2024-05-27 10:26:30 +02:00
mocks/mock_gcsifaces Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
models Auth: Add empty role definition (#64694) 2023-07-06 15:40:06 +02:00
modules Storage Api: Add metrics (#85316) 2024-04-08 08:35:01 -06:00
plugins Plugins: Support Admission validation hooks (#87718) 2024-05-24 18:45:16 +03:00
promlib Prometheus: Update dependency to v0.52.0 (#87809) 2024-05-28 15:22:20 +02:00
registry Tracing: Various improvements (#88308) 2024-05-27 14:21:40 +02:00
server RBAC: Clean up action set code (#88147) 2024-05-23 12:14:01 +01:00
services Alerting: Scheduled recording rules execute their queries (#88309) 2024-05-28 10:59:21 -05:00
setting Actionsets: Add cfg option for only writing actionsets (#88367) 2024-05-28 16:32:23 +01:00
tests Actionsets: Add cfg option for only writing actionsets (#88367) 2024-05-28 16:32:23 +01:00
tsdb Refactor plugin context initialization (#88343) 2024-05-28 16:59:06 +03:00
util Errors: Update errutil to be compatible with k8s errors (#87605) 2024-05-20 18:11:37 +03:00
web Image Rendering: Add settings for default width, height and scale (#82040) 2024-02-26 13:27:34 +01:00
README.md Chore: Move all backend contribution documents to a single directory (#61140) 2023-01-11 11:16:52 +01:00
ruleguard.rules.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00

This directory contains the code for the Grafana backend.

The contributor documentation for Grafana's backend is in /contribute/backend/README.md.