mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-04 20:06:12 +02: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
@ -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…
x
Reference in New Issue
Block a user