Commit b7c24c1
committed
docs(skills): LogsQL clause-order and _time iron rules on the monit-query card
The monit-query card teaches `data --expr` by example for PromQL and Loki
but names LogsQL only as a routing keyword, so a VictoriaLogs query gets
written with SQL/PromQL/Loki habits and comes back 422 on syntax alone.
Two dialect rules that differ from every other backend the card covers:
- `stats` takes `by (...)` BEFORE the aggregate: `| stats by (level) count() n`.
Trailing `by` — the SQL/PromQL/Loki form — is a parse error, so the retry
that only changes the aggregate spelling fails identically.
- `_time:` accepts a duration or a bracketed range (`_time:[<rfc3339>, <rfc3339>]`),
never a slash range, and never an abbreviated date.
Both are stated with the exact rejected forms and the error text they produce,
plus a LogsQL worked example alongside the existing Loki one.1 parent 941d3d1 commit b7c24c1
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
0 commit comments