VictoriaMetrics/app
Roman Khavronenko 791cad8c2e
lib/promscrape: support prometheus-like duration in scrape configs (#2169)
* lib/promscrape: support prometheus-like duration in scrape configs

The change allows to specify duration values like `1d`, `1w`
for fields `scrape_interval`, `scrape_timeout`, etc.

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/817#issuecomment-1033384766
Signed-off-by: hagen1778 <roman@victoriametrics.com>

* lib/blockcache: make linter happy

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

* lib/promscrape: support prometheus-like duration in scrape configs

* add support for extra fields `scrape_align_interval` and `scrape_offset`;
* support Prometheus duration parsing for `__scrape_interval__`
and `__scrape_duration__` labels;

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

* wip

* wip

* docs/CHANGELOG.md: document the feature

Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2022-02-11 16:17:51 +02:00
..
vmagent lib/promscrape: set -promscrape.config.strictParse to true by default 2022-02-08 15:42:33 +02:00
vmalert lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00
vmauth lib/promscrape: set -promscrape.config.strictParse to true by default 2022-02-08 15:42:33 +02:00
vmbackup docs: Correct some urls in the docs (#2081) 2022-01-19 11:57:02 +02:00
vmbackupmanager Old links replaced for newest (#2033) 2022-01-05 16:32:54 +02:00
vmctl vmctl: add option to rate limit data transfer speed 2022-01-06 23:14:22 +02:00
vmgateway all: update link to EULA from https://victoriametrics.com/assets/VM_EULA.pdf to https://victoriametrics.com/legal/eula/ 2022-01-20 22:22:44 +02:00
vminsert app/vminsert/netstorage: throttle warning logs, which can be too verbose when vminsert cannot send data to vmstorage nodes 2022-02-07 15:39:06 +02:00
vmrestore Update README.md (#1996) 2021-12-23 12:11:30 +02:00
vmselect lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00
vmstorage all: substitute zeroTime with time.Time{}, since this generates more optimal binary code 2022-02-07 14:36:41 +02:00
vmui build(deps): bump @mui/icons-material in /app/vmui/packages/vmui (#2166) 2022-02-08 17:24:14 +02:00