VictoriaMetrics/app/vmalert/datasource
Roman Khavronenko 2831e6f9ae
vmalert: fix nil map assignment (#4392)
The storage instance with nil map params was created for remote-read purposes.
And before change 7a9ae9de0d this map was ignored in ApplyParams.
Now, it started to be used and vmalert panics in runtime.

The fix properly inits map for at `NewVMStorage` and verifies it is not nil
on assignment in `ApplyParams`.

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

---------

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

(cherry picked from commit de94812088)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-06-05 11:14:10 +02:00
..
datasource.go Vmalert compliance 2 (#2340) 2022-03-29 15:09:07 +02:00
datasource_test.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:20:38 +03:00
init.go docs/vmalert.md: follow-up for 0c95f928ae 2022-10-06 16:12:54 +03:00
type.go app/vmalert/datasource: use plain string literals instead of constants 2021-11-05 19:57:47 +02:00
vm.go vmalert: fix nil map assignment (#4392) 2023-06-05 11:14:10 +02:00
vm_graphite_api.go vmalert: introduce additional HTTP URL params per-group configuration (#1892) 2021-12-02 14:45:08 +02:00
vm_prom_api.go vmalert: fix replay step param (#3428) 2022-12-10 21:25:46 -08:00
vm_test.go app/vmalert: fix datasource.roundDigits Parameter (#4341) 2023-06-05 11:11:06 +02:00