From ce204dad1e78db8f7418baf39e3d42e1ad343593 Mon Sep 17 00:00:00 2001 From: nickgrafana <169014307+nickgrafana@users.noreply.github.com> Date: Tue, 25 Jun 2024 12:31:45 -0600 Subject: [PATCH] docs: Clarify Unit Requirement for Duration Comparison in Label Values (#13318) Co-authored-by: J Stickler (cherry picked from commit 557085530913fcfa70c39808391c846ef8273992) --- docs/sources/query/log_queries/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/query/log_queries/_index.md b/docs/sources/query/log_queries/_index.md index 1e88402fe3bf2..238d61bd7bab8 100644 --- a/docs/sources/query/log_queries/_index.md +++ b/docs/sources/query/log_queries/_index.md @@ -223,7 +223,7 @@ For example with `cluster="namespace"` the cluster is the label identifier, the We support multiple **value** types which are automatically inferred from the query input. - **String** is double quoted or backticked such as `"200"` or \``us-central1`\`. -- **[Duration](https://golang.org/pkg/time/#ParseDuration)** is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". +- **[Duration](https://golang.org/pkg/time/#ParseDuration)** is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". The value of the label identifier used for comparison must be a string with a unit suffix to be parsed correctly, such as "0.10ms" or "1h30m". Optionally, `label_format` can be used to modify the value and append the unit before making the comparison. - **Number** are floating-point number (64bits), such as`250`, `89.923`. - **Bytes** is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "42MB", "1.5Kib" or "20b". Valid bytes units are "b", "kib", "kb", "mib", "mb", "gib", "gb", "tib", "tb", "pib", "pb", "eib", "eb".