Skip to content

Commit 91a3486

Browse files
nickgrafanaJStickler
nickgrafana
andauthored
docs: Label filter expression: Change unit suffix suffix to proper case whe… (#13344)
Co-authored-by: J Stickler <[email protected]>
1 parent e28c15f commit 91a3486

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/sources/query/log_queries/_index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ We support multiple **value** types which are automatically inferred from the qu
225225
- **String** is double quoted or backticked such as `"200"` or \``us-central1`\`.
226226
- **[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.
227227
- **Number** are floating-point number (64bits), such as`250`, `89.923`.
228-
- **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".
228+
- **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", "kB", "MB", "GB", "TB", "KB", "KiB", "MiB", "GiB", "TiB".
229229

230230
String type work exactly like Prometheus label matchers use in [log stream selector](#log-stream-selector). This means you can use the same operations (`=`,`!=`,`=~`,`!~`).
231231

@@ -247,10 +247,10 @@ You can chain multiple predicates using `and` and `or` which respectively expres
247247
This means that all the following expressions are equivalent:
248248

249249
```logql
250-
| duration >= 20ms or size == 20kb and method!~"2.."
251-
| duration >= 20ms or size == 20kb | method!~"2.."
252-
| duration >= 20ms or size == 20kb , method!~"2.."
253-
| duration >= 20ms or size == 20kb method!~"2.."
250+
| duration >= 20ms or size == 20KB and method!~"2.."
251+
| duration >= 20ms or size == 20KB | method!~"2.."
252+
| duration >= 20ms or size == 20KB , method!~"2.."
253+
| duration >= 20ms or size == 20KB method!~"2.."
254254
255255
```
256256

0 commit comments

Comments
 (0)