Repository navigation
v0.6.2
Highlights
- Shell completion:
promql-cli completion bash|zsh|fish, generated from the CLI definition. --version: plus real version/commit for any build (falls back to Go build info without-ldflags), the Go version and the Prometheus module in use.- Multi-line input: paste or type multi-line PromQL; open
(/[/{or quotes continue on a...>prompt, and the joined query runs once (one history entry). - Saved pins:
.saverecords the pinned evaluation time (# promql-cli: pinat=...) and.load/promql-cli query <file>restore it;.load ... pinat=last|first|none|<timespec>|<selector>. --repl=promptfixes: Ctrl-C interrupts running commands, Ctrl-Z suspends, Ctrl-R reverse search, readline-identical word editing, experimental function completion (e.g.time_to_threshold(), nested file-path completion for.rules/.load/.source/.save.- Parsing:
now-7dand otherd/w/ydurations;|inside'...'or`...`no longer treated as a shell pipe;.prom_scraperejects range-style arguments. - Rules:
ALERTresults print after status output, formatted like PromQL samples.
Docker: docker run --rm -it xjjo/promql-cli:v0.6.2 (linux/amd64, linux/arm64).
What's Changed
Full Changelog: v0.6.1...v0.6.2