mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
vmalert: check if remoteWrite is configured for replay mode (#1990)
* vmalert: check if remoteWrite is configured for replay mode The purpose of `replay` mode is to backfill results of recording or alerting rules. So `remoteWrite.url` should be required. Otherwise, process can fail on attempt to send data. Signed-off-by: hagen1778 <roman@victoriametrics.com> * Update app/vmalert/main.go Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
This commit is contained in:
parent
4b40acd964
commit
9bb7905d26
@ -97,6 +97,9 @@ func main() {
|
||||
if err != nil {
|
||||
logger.Fatalf("failed to init remoteWrite: %s", err)
|
||||
}
|
||||
if rw == nil {
|
||||
logger.Fatalf("remoteWrite.url can't be empty in replay mode")
|
||||
}
|
||||
notifier.InitTemplateFunc(eu)
|
||||
groupsCfg, err := config.Parse(*rulePath, *validateTemplates, *validateExpressions)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user