VictoriaMetrics/app
Roman Khavronenko e3adcbec6e
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:00 +02:00
..
victoria-metrics lib/promscrape: set -promscrape.config.strictParse to true by default 2022-02-08 15:41:43 +02:00
vmagent lib/promscrape: set -promscrape.config.strictParse to true by default 2022-02-08 15:41:43 +02:00
vmalert lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:00 +02:00
vmauth lib/promscrape: set -promscrape.config.strictParse to true by default 2022-02-08 15:41:43 +02:00
vmbackup docs: Correct some urls in the docs (#2081) 2022-01-19 11:55:30 +02:00
vmbackupmanager Old links replaced for newest (#2033) 2022-01-05 16:30:13 +02:00
vmctl vmctl: add option to rate limit data transfer speed 2022-01-06 12:21:42 +03: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:23:27 +02:00
vminsert lib/promscrape: provide the ability to fetch target responses on behalf of vmagent or single-node VictoriaMetrics 2022-02-03 19:00:55 +02:00
vmrestore Update README.md (#1996) 2021-12-23 12:09:59 +02:00
vmselect lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:00 +02:00
vmstorage lib/{mergeset,storage}: properly limit cache sizes for indexdb 2022-01-20 18:37:17 +02:00
vmui build(deps): bump @mui/icons-material in /app/vmui/packages/vmui (#2166) 2022-02-08 17:22:51 +02:00