VictoriaMetrics/vendor/github.com/VictoriaMetrics/metricsql
2023-02-18 22:43:54 -08:00
..
binaryop app/vmselect/promql: add atan2 binary operator, which is going to be added in Prometheus 2.31 2021-10-11 21:17:23 +03:00
aggr.go app/vmselect/promql: add share(q) aggregate function for normalizing results across multiple time series in [0..1] value range per each timestamp and aggregation group 2023-02-18 22:43:54 -08:00
binary_op.go app/vmselect/promql: add atan2 binary operator, which is going to be added in Prometheus 2.31 2021-10-11 21:17:23 +03:00
doc.go vmselect/promql: add alphanumeric sort by label (sort_by_label_numeric) (#2982) 2022-09-14 17:42:07 +03:00
lexer.go vendor: update github.com/VictoriaMetrics/metricsql from v0.51.1 to v0.51.2 2023-01-17 11:26:11 -08:00
LICENSE lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:30:06 +03:00
optimizer.go app/vmselect/promql: add range_zscore(q) and range_trim_zscore(z, q) functions 2023-02-18 22:43:53 -08:00
parser.go app/vmselect/promql: allow using SI and IEC suffixes in numeric values inside queries 2022-11-21 21:28:34 +02:00
README.md app/vmselect/promql: support for sum(x) by (y) limit N syntax in order to limit the number of output time series after aggregation 2020-05-12 19:50:12 +03:00
regexp_cache.go vendor: update github.com/VictoriaMetrics/metricsql from v0.44.0 to v0.44.1 2022-06-30 17:37:57 +03:00
rollup.go app/vmselect/promql: add mad_over_time(m[d]) function 2023-02-11 01:06:39 -08:00
transform.go app/vmselect/promql: add range_zscore(q) and range_trim_zscore(z, q) functions 2023-02-18 22:43:53 -08:00
utils.go app/vmselect: properly handle PromQL queries like scalar1 < metric < scalar2 like Prometheus does 2020-08-06 23:21:14 +03:00

GoDoc Go Report

metricsql

Package metricsql implements MetricsQL and PromQL parser in Go.

Usage

    expr, err := metricsql.Parse(`sum(rate(foo{bar="baz"}[5m])) by (job)`)
    if err != nil {
        // parse error
    }
    // Now expr contains parsed MetricsQL as `*Expr` structs.
    // See Parse examples for more details.

See docs for more details.