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>
pull/16716/head
Charles Korn 7 months ago
parent 1e794f7ef9
commit 40bed6281e
No known key found for this signature in database
  1. 6
      docs/querying/operators.md

@ -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…
Cancel
Save