VictoriaMetrics/vendor/github.com/VictoriaMetrics/metricsql
2024-07-03 00:00:09 +02:00
..
binaryop app/vmselect/promql: add atan2 binary operator, which is going to be added in Prometheus 2.31 2021-10-11 21:15:53 +03:00
aggr.go app/vmselect/promql: add outliers_iqr(q) and outlier_iqr_over_time(m[d]) functions 2023-10-31 22:10:31 +01: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:15:53 +03:00
doc.go vendor: update github.com/VictoriaMetrics/metrics and github.com/VictoriaMetrics/metricsql to newer versions 2024-03-30 04:44:19 +02:00
lexer.go app/vmselect/promql: add support for _ delimiters in numeric values 2023-08-30 14:33:41 +02:00
LICENSE lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:28:22 +03:00
optimizer.go app/vmselect/promql: properly handle args in count_values_over_time() function 2024-02-25 01:48:18 +02:00
parser.go vendor: update github.com/VictoriaMetrics/metricsql from v0.72.1 to v0.73.0 2024-02-18 18:41:41 +02:00
prettifier.go vendor: update github.com/VictoriaMetrics/metricsql from v0.72.1 to v0.73.0 2024-02-18 18:41:41 +02:00
README.md vendor: update github.com/VictoriaMetrics/metrics and github.com/VictoriaMetrics/metricsql to newer versions 2024-03-30 04:44:19 +02:00
regexp_cache.go vendor: update github.com/VictoriaMetrics/metricsql from v0.44.0 to v0.44.1 2022-06-30 18:20:33 +03:00
rollup.go app/vmselect/promql: properly handle args in count_values_over_time() function 2024-02-25 01:48:18 +02:00
transform.go vendor: update github.com/VictoriaMetrics/metricsql from v0.70.0 to v0.70.1 2024-02-06 21:52:35 +02:00
utils.go vendor: run make vendor-update 2024-07-03 00:00:09 +02: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.