VictoriaMetrics/app/vmalert/notifier
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
..
testdata vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
alert_test.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:30:54 +03:00
alert.go vmalert: correctly calculate alert ID including extra labels (#1734) 2021-10-22 12:31:35 +03:00
alertmanager_request.qtpl Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
alertmanager_request.qtpl.go Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
alertmanager_test.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
alertmanager.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
config_test.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
config_watcher_test.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
config_watcher.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
config.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00
init.go vmalert: add support of -notifier.basicAuth.passwordFile flag for notifiers 2022-02-02 23:42:25 +02:00
notifier.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
package_test.go Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
template_func.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00