From 36a9a834b3b9ac8758e65a2766f6a70c9f1c5a2f Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Mon, 26 Sep 2022 15:48:38 +0200 Subject: [PATCH] docs: clarify numeric label values for `label_value` (#3129) https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3114 Signed-off-by: hagen1778 Signed-off-by: hagen1778 --- docs/MetricsQL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/MetricsQL.md b/docs/MetricsQL.md index 07bfac00f..7a4690eb7 100644 --- a/docs/MetricsQL.md +++ b/docs/MetricsQL.md @@ -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