mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Update unit_testing_rules.md
Update the shorthand, and note the different behaviour between missing samples and numbers. Signed-off-by: Danny Staple <danny@orionrobots.co.uk>
This commit is contained in:
parent
300d6e4390
commit
b614fdd8a7
|
@ -86,7 +86,8 @@ series: <string>
|
||||||
# Examples:
|
# Examples:
|
||||||
# 1. '-2+4x3' becomes '-2 2 6 10' - series starts at -2, then 3 further samples incrementing by 4.
|
# 1. '-2+4x3' becomes '-2 2 6 10' - series starts at -2, then 3 further samples incrementing by 4.
|
||||||
# 2. ' 1-2x4' becomes '1 -1 -3 -5 -7' - series starts at 1, then 4 further samples decrementing by 2.
|
# 2. ' 1-2x4' becomes '1 -1 -3 -5 -7' - series starts at 1, then 4 further samples decrementing by 2.
|
||||||
# 3. ' 1 _x3 stale' becomes '1 _ _ _ stale'
|
# 3. ' 1x4' become '1 1 1 1' - shorthand for '1+0x4', series starts at 1, then 3 further samples incrementing by 0.
|
||||||
|
# 4. ' 1 _x3 stale' becomes '1 _ _ _ stale' - the missing sample cannot increment, so only 3 samples are produced by the '_x3' expression.
|
||||||
values: <string>
|
values: <string>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue