Skip to content

Commit

Permalink
docs: Label filter expression: Change unit suffix suffix to proper ca…
Browse files Browse the repository at this point in the history
…se whe… (#13344)

Co-authored-by: J Stickler <[email protected]>
(cherry picked from commit 91a3486)
  • Loading branch information
nickgrafana authored and grafana-delivery-bot[bot] committed Jun 27, 2024
1 parent 7fdcea1 commit 0264a99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/sources/query/log_queries/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ We support multiple **value** types which are automatically inferred from the qu
- **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".
- **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".
- **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".

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

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

```logql
| duration >= 20ms or size == 20kb and method!~"2.."
| duration >= 20ms or size == 20kb | method!~"2.."
| duration >= 20ms or size == 20kb , method!~"2.."
| duration >= 20ms or size == 20kb method!~"2.."
| duration >= 20ms or size == 20KB and method!~"2.."
| duration >= 20ms or size == 20KB | method!~"2.."
| duration >= 20ms or size == 20KB , method!~"2.."
| duration >= 20ms or size == 20KB method!~"2.."
```

Expand Down

0 comments on commit 0264a99

Please sign in to comment.