VictoriaMetrics/lib/logger
Roman Khavronenko 34fdc8881b
vmagent: add error log for skipped data block when rejected by receiv… (#1956)
* vmagent: add error log for skipped data block when rejected by receiving side

Previously, rejected data blocks were silently dropped - only metrics were update.
From operational perspective, having an additional logging for such cases is preferable.

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1911

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

* vmagent: throttle log messages about skipped blocks

The new type of logger was added to logger pacakge.
This new type supposed to control number of logged messages
by time.

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

* lib/logger: make LogThrottler public, so its methods can be inspected by external packages

Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2021-12-21 16:36:09 +02:00
..
flag.go lib/logger: show only explicitly set command-line flags in logs 2021-10-28 11:00:52 +03:00
logger.go improve docs for cli flags (#1202) 2021-04-12 12:28:04 +03:00
throttler_test.go vmagent: add error log for skipped data block when rejected by receiv… (#1956) 2021-12-21 16:36:09 +02:00
throttler.go vmagent: add error log for skipped data block when rejected by receiv… (#1956) 2021-12-21 16:36:09 +02:00
tzdata.go all: add go:build lines for Go1.17 2021-07-26 15:48:21 +03:00