mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
vmalert-tool: set default interval for unittest input_series (#7392)
### Describe Your Changes
Currently it is not optional option, but if user forgot to set, it
defaults to 0, which cause unexpected behavior.
This change sets default = evaluation_interval similar to promtool
behavior.
https://prometheus.io/docs/prometheus/2.55/configuration/unit_testing_rules/#test_group
### Checklist
The following checks are **mandatory**:
- [x] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).
Signed-off-by: Viet Hung Nguyen <hvn@familug.org>
(cherry picked from commit 21d1385ae1
)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
d71c745d19
commit
cb85e6aef3
1 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ tests:
|
|||
|
||||
```yaml
|
||||
# Interval between samples for input series
|
||||
interval: <duration>
|
||||
[ interval: <duration> | default = evaluation_interval ]
|
||||
# Time series to persist into the database according to configured <interval> before running tests.
|
||||
input_series:
|
||||
[ - <series> ]
|
||||
|
|
Loading…
Reference in a new issue