docs: clarify numeric label values for label_value (#3129)

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3114
Signed-off-by: hagen1778 <roman@victoriametrics.com>

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2022-09-26 15:48:38 +02:00 committed by Aliaksandr Valialkin
parent 322e5006d2
commit b8c4c36b89
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -806,7 +806,9 @@ sum by (__name__) (
#### label_value
`label_value(q, "label")` returns number values for the given `label` for every time series returned by `q`. For example, if `label_value(foo, "bar")` is applied to `foo{bar="1.234"}`, then it will return a time series `foo{bar="1.234"}` with `1.234` value.
`label_value(q, "label")` returns numeric values for the given `label` for every time series returned by `q`.
For example, if `label_value(foo, "bar")` is applied to `foo{bar="1.234"}`, then it will return a time series
`foo{bar="1.234"}` with `1.234` value. Function will return no data for non-numeric label values.
### Aggregate functions