docs/keyConcepts.md: clarify that the number of ,-delimited filters per each or group can be arbitrary

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3997
This commit is contained in:
Aliaksandr Valialkin 2023-07-16 23:37:01 -07:00
parent dd2c2a6ac8
commit 070365c870
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -829,8 +829,11 @@ either `{job="app1",env="prod"}` or `{job="app2",env="dev"}` labels:
{job="app1",env="prod" or job="app2",env="dev"}
```
The number of `or` filters can be arbitrary. This functionality allows passing the selected series
to [rollup functions](https://docs.victoriametrics.com/MetricsQL.html#rollup-functions) such as [rate()](https://docs.victoriametrics.com/MetricsQL.html#rate)
The number of `or` groups can be arbitrary. The number of `,`-delimited label filters per each `or` group can be arbitrary.
Per-group filters are applied with `and` operation, e.g. they select series simultaneously matching all the filters in the group.
This functionality allows passing the selected series to [rollup functions](https://docs.victoriametrics.com/MetricsQL.html#rollup-functions)
such as [rate()](https://docs.victoriametrics.com/MetricsQL.html#rate)
without the need to use [subqueries](https://docs.victoriametrics.com/MetricsQL.html#subqueries):
```metricsql