VictoriaMetrics/app
Roman Khavronenko 5b8450fc1b
app/vmalert: detect alerting rules which don't match any series at all (#4198)
app/vmalert: detect alerting rules which don't match any series at all

vmalert starts to understand /query responses which contain object:
```
"stats":{"seriesFetched": "42"}
```
If object is present, vmalert parses it and populates a new field
`SeriesFetched`. This field is then used to populate the new metric
`vmalert_alerting_rules_last_evaluation_series_fetched` and to
display warnings in the vmalert's UI.

If response doesn't contain the new object (Prometheus or
VictoriaMetrics earlier than v1.90), then `SeriesFetched=nil`.
In this case, UI will contain no additional warnings.
And `vmalert_alerting_rules_last_evaluation_series_fetched` will
be set to `-1`. Negative value of the metric will help to compile
correct alerting rule in follow-up.

Thanks for the initial implementation to @Haleygo
See https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4056

See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4039

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-05-08 09:36:39 +02:00
..
victoria-metrics lib/streamaggr: follow-up for ff72ca14b9 2023-03-31 22:30:38 -07:00
vmagent added new consulagent service discovery (#3953) (#4217) 2023-05-04 11:36:21 +02:00
vmalert app/vmalert: detect alerting rules which don't match any series at all (#4198) 2023-05-08 09:36:39 +02:00
vmauth Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vmbackup lib/backup: fixes path generation for windows (#4133) 2023-05-03 10:48:53 +02:00
vmbackupmanager Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vmctl app/vmctl: add support for the different time format in the native binary protocol (#4189) 2023-04-24 18:33:30 +02:00
vmgateway Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vminsert lib/streamaggr: follow-up for ff72ca14b9 2023-03-31 22:30:38 -07:00
vmrestore Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vmselect vmselect: exit early from queue on context cancel (#4223) 2023-05-03 10:42:17 +02:00
vmstorage lib/storage: replace OpenStorage() with MustOpenStorage() 2023-04-14 23:02:40 -07:00
vmui vmui: add metric relabel debug (#3889) 2023-04-26 11:53:29 +03:00