VictoriaMetrics/app/vmalert/config
Roman Khavronenko 3283f0dae4
vmalert: support logs suppressing during config reloads (#3973)
* vmalert: support logs suppressing during config reloads

The change is mostly required for ENT version of vmalert,
since it supports object-storage for config files.
Reading data from object storage could be time-consuming,
so vmalert emits logs to track the progress.

However, these logs are mostly needed on start or on
manual config reload. Printing these logs each time
`rule.configCheckInterval` is triggered would too verbose.
So the change allows to control logs emitting during
config reloads.

Now, logs are emitted during start up or when SIGHUP is receieved.
For periodicall config checks logs emitted by config pkg are suppressed.

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

* vmalert: review fixes

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

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-03-20 16:08:30 +01:00
..
fslocal app/vmalert: log number of configration files found for each specified -rule (#3936) 2023-03-09 14:46:19 +01:00
log vmalert: support logs suppressing during config reloads (#3973) 2023-03-20 16:08:30 +01:00
testdata vmalert: allow configuring the default number of stored rule's update states (#3556) 2022-12-29 12:36:44 +01:00
config.go vmalert: support logs suppressing during config reloads (#3973) 2023-03-20 16:08:30 +01:00
config_test.go vmalert: allow configuring the default number of stored rule's update states (#3556) 2022-12-29 12:36:44 +01:00
fs.go vmalert: support logs suppressing during config reloads (#3973) 2023-03-20 16:08:30 +01:00
fs_test.go vmalert: support object storage for rules (#519) 2023-02-09 18:50:48 -08:00
types.go vmalert: remove dependency on datasource pkg from config (#2905) 2022-07-22 10:44:55 +02:00