mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-20 00:10:23 -05:00
Clarify behaviour of metric names with bool modifier
Based on discussion in https://github.com/prometheus/prometheus/issues/15471 Signed-off-by: Charles Korn <charles.korn@grafana.com>
This commit is contained in:
parent
1e794f7ef9
commit
40bed6281e
1 changed files with 6 additions and 0 deletions
|
|
@ -139,6 +139,12 @@ modifier changes the behavior in the following ways:
|
|||
than the value `0`.)
|
||||
* The metric name is dropped.
|
||||
|
||||
If the `bool` modifier is not provided, then the metric name from the left side
|
||||
is retained, with some exceptions:
|
||||
* If `on` is used, then the metric name is dropped.
|
||||
* If `group_right` is used, then the metric name from the right side is retained,
|
||||
to avoid collisions.
|
||||
|
||||
### Logical/set binary operators
|
||||
|
||||
These logical/set binary operators are only defined between instant vectors:
|
||||
|
|
|
|||
Loading…
Reference in a new issue