grafana/pkg/services/ngalert/schedule
Steve Simpson 4d1a2c3370
Alerting: Move rule_groups_rules metric from State to Scheduler. (#63144)
The `rule_groups_rules` metric is currently defined and computed by `State`.
It makes more sense for this metric to be computed off of the configured rule
set, not based on the rule evaluation state. There could be an edge condition
where a rule does not have a state yet, and so is uncounted.

Additionally, we would like this metric (and others), to have a `rule_group`
label, and this is much easier to achieve if the metric is produced from the
`Scheduler` package.
2023-02-09 17:05:19 +01:00
..
alerts_sender_mock.go Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00
compat_test.go Alerting: Update to alerting 20230203015918-0e4e2675d7aa (after refactoring) (#62823) 2023-02-03 11:36:49 -05:00
compat.go Alerting: Update to alerting 20230203015918-0e4e2675d7aa (after refactoring) (#62823) 2023-02-03 11:36:49 -05:00
fetcher_test.go Alerting: Scheduler to use AlertRule (#52354) 2022-07-26 09:40:06 -04:00
fetcher.go Alerting: Change severity level of fetcher log messages (#57299) 2022-10-19 16:00:47 -04:00
registry_test.go Alerting: Add alert pausing feature (#60734) 2023-01-26 18:29:10 +01:00
registry.go Alerting: Add alert pausing feature (#60734) 2023-01-26 18:29:10 +01:00
schedule_mock.go Chore: Fix goimports grouping in alerting (#62424) 2023-01-30 09:55:35 +01:00
schedule_unit_test.go Alerting: Move rule_groups_rules metric from State to Scheduler. (#63144) 2023-02-09 17:05:19 +01:00
schedule.go Alerting: Move rule_groups_rules metric from State to Scheduler. (#63144) 2023-02-09 17:05:19 +01:00
testing.go Alerting: update test TestAlertingTicker to not rely on clock (#58544) 2022-11-09 15:08:57 -05:00