VictoriaMetrics/app/vmalert/datasource
Roman Khavronenko de94812088
vmalert: fix nil map assignment (#4392)
* vmalert: fix nil map assignment

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>

* vmalert: add to changelog

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

* vmalert: properly clone Storage params

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

* vmalert: properly clone Storage params

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

* vmalert: properly clone Storage params

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

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-06-02 11:38:55 +02:00
..
datasource_test.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:20:38 +03:00
datasource.go app/vmalert: detect alerting rules which don't match any series at all (#4198) 2023-05-08 09:36:39 +02:00
init.go fixed typos in documentation and commandline flags descriptions (#4275) 2023-05-10 09:50:41 +02:00
vm_graphite_api.go app/vmalert: detect alerting rules which don't match any series at all (#4198) 2023-05-08 09:36:39 +02:00
vm_prom_api_test.go vmalert: reduce allocations for Prometheus resp parse (#3435) 2022-12-05 08:34:54 +01:00
vm_prom_api.go app/vmalert: detect alerting rules which don't match any series at all (#4198) 2023-05-08 09:36:39 +02:00
vm_test.go app/vmalert: fix datasource.roundDigits Parameter (#4341) 2023-06-01 09:44:11 +02:00
vm.go vmalert: fix nil map assignment (#4392) 2023-06-02 11:38:55 +02:00