prometheus/rules
Julien Duchesne e2f037e554
rules: Add new RuleEvaluationTimeSum field to groups (#15672)
* feat(ruler): Add new `RuleEvaluationTimeSum` field to groups
Coupled with a metric: `rule_group_last_rule_duration_sum_seconds`

This will give us more observability into how fast a group runs with or without concurrency

Signed-off-by: Julien Duchesne <julien.duchesne@grafana.com>

* Update rules/group.go

Co-authored-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: Julien Duchesne <julienduchesne@live.com>
Signed-off-by: Julien Duchesne <julien.duchesne@grafana.com>

* Apply suggestions from code review

Co-authored-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: Julien Duchesne <julienduchesne@live.com>
Signed-off-by: Julien Duchesne <julien.duchesne@grafana.com>

* Remove `in seconds`. A duration is a duration

Signed-off-by: Julien Duchesne <julien.duchesne@grafana.com>

---------

Signed-off-by: Julien Duchesne <julien.duchesne@grafana.com>
Signed-off-by: Julien Duchesne <julienduchesne@live.com>
Co-authored-by: gotjosh <josue.abreu@gmail.com>
2024-12-13 21:42:46 +00:00
..
fixtures RuleDependencyController: Fix for indeterminate conditions (#15560) 2024-12-13 16:48:29 +00:00
alerting_test.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
alerting.go enable errorf rule from perfsprint linter 2024-11-06 16:50:36 +01:00
group_test.go rules.NewGroup: Fix when no logger is passed (#15356) 2024-11-21 16:53:06 +01:00
group.go rules: Add new RuleEvaluationTimeSum field to groups (#15672) 2024-12-13 21:42:46 +00:00
manager_test.go rules: Add new RuleEvaluationTimeSum field to groups (#15672) 2024-12-13 21:42:46 +00:00
manager.go rules: Add new RuleEvaluationTimeSum field to groups (#15672) 2024-12-13 21:42:46 +00:00
origin_test.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
origin.go
recording_test.go
recording.go enable errorf rule from perfsprint linter 2024-11-06 16:50:36 +01:00
rule.go