VictoriaMetrics/app/vmalert/datasource
Roman Khavronenko 1f0301c809
vmalert: always convert step value to seconds for better compatibility (#1955)
When using `vmalert` with older Prometheus versions, the passed
`step=2m` may be parsed by Prometheus with an err: "cannot parse \"2m0s\" to a valid duration".
In order to improve compatibility vmalert will always convert step duration to seconds.

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1943
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2021-12-17 20:17:09 +02:00
..
datasource_test.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:30:54 +03:00
datasource.go vmalert: introduce additional HTTP URL params per-group configuration (#1892) 2021-12-02 14:51:54 +02:00
init.go vmalert: introduce additional HTTP URL params per-group configuration (#1892) 2021-12-02 14:51:54 +02:00
type.go app/vmalert/datasource: use plain string literals instead of constants 2021-11-05 19:58:15 +02:00
vm_graphite_api.go vmalert: introduce additional HTTP URL params per-group configuration (#1892) 2021-12-02 14:51:54 +02:00
vm_prom_api.go vmalert: always convert step value to seconds for better compatibility (#1955) 2021-12-17 20:17:09 +02:00
vm_test.go vmalert: always convert step value to seconds for better compatibility (#1955) 2021-12-17 20:17:09 +02:00
vm.go vmalert: introduce additional HTTP URL params per-group configuration (#1892) 2021-12-02 14:51:54 +02:00