VictoriaMetrics/app/vmalert/rule
Roman Khavronenko a2f83115ae
app/vmalert: autogenerate ALERTS_FOR_STATE time series for alerting rules with for: 0 (#5680)
* app/vmalert: autogenerate `ALERTS_FOR_STATE` time series for alerting rules with `for: 0`

 Previously, `ALERTS_FOR_STATE` was generated only for alerts with `for > 0`.
 This behavior differs from Prometheus behavior - it generates ALERTS_FOR_STATE
 time series for alerting rules with `for: 0` as well. Such time series can
 be useful for tracking the moment when alerting rule became active.

 Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5648
 https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3056

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* app/vmalert: support ALERTS_FOR_STATE in `replay` mode

Signed-off-by: hagen1778 <roman@victoriametrics.com>

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2024-01-26 20:51:50 +01:00
..
alerting_test.go app/vmalert: autogenerate ALERTS_FOR_STATE time series for alerting rules with for: 0 (#5680) 2024-01-26 20:51:50 +01:00
alerting.go app/vmalert: autogenerate ALERTS_FOR_STATE time series for alerting rules with for: 0 (#5680) 2024-01-26 20:51:50 +01:00
group_test.go app/vmalert: fix typo in tests 2023-10-26 08:55:20 +02:00
group.go app/vmalert: update remote-write process (#5284) 2023-11-13 09:25:29 +01:00
recording_test.go vmalert: automatically add exported_ prefix for original evaluation… (#5398) 2023-12-22 16:10:33 +01:00
recording.go vmalert: automatically add exported_ prefix for original evaluation… (#5398) 2023-12-22 16:10:33 +01:00
rule_test.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00
rule.go app/vmalert: expose /vmalert/api/v1/rule and /api/v1/rule API which returns rule status in JSON format (#5397) 2023-12-04 22:49:39 +02:00
test_helpers.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00
utils_test.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00
utils.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00