Prometheus promql

From wikinotes
Revision as of 00:25, 18 February 2022 by Will (talk | contribs) (Created page with "PromQL is prometheus's query language.<br> You can query prometheus from * HTTP API * in the UI's graph? = Documentation = <blockquote> {| class="wikitable" |- | officia...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

PromQL is prometheus's query language.
You can query prometheus from

  • HTTP API
  • in the UI's graph?

Documentation

official docs https://prometheus.io/docs/prometheus/latest/querying/basics/
official examples https://prometheus.io/docs/prometheus/latest/querying/examples/
re2 (regex engine) https://github.com/google/re2/wiki/Syntax


Datatypes

Strings

// string
"foo"
`foo`

// string-literal
'foo\nbar'

Floats

23
-2.43
3.4e-9
0x8f
-Inf
NaN