PromLabs | PromQL Cheat Sheet
https://promlabs.com/promql-cheat-sheetWant to learn PromQL from the ground up? Check out our self-paced in-depth PromQL training. Selecting series. Select latest sample for series with a given metric name: node_cpu_seconds_total. Open in PromLens. ... sum without (instance, job) (node_filesystem_size_bytes) Open in PromLens.
Querying basics | Prometheus
prometheus.io › docs › prometheusPromQL follows the same escaping rules as Go. In single or double quotes a backslash begins an escape sequence, which may be followed by a, b, f, n, r, t, v or \. Specific characters can be provided using octal ( nn) or hexadecimal (\xnn, \unnnn and \Unnnnnnnn). No escaping is processed inside backticks.
Query functions | Prometheus
prometheus.io › docs › prometheus(Samples without such a label are silently ignored.) The histogram metric type automatically provides time series with the _bucket suffix and the appropriate labels. Use the rate() function to specify the time window for the quantile calculation. Example: A histogram metric is called http_request_duration_seconds. To calculate the 90th ...