VictoriaMetrics/vendor/github.com/VictoriaMetrics/metricsql
2021-01-13 10:59:32 +02:00
..
binaryop lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:30:06 +03:00
aggr.go app/vmselect/promql: add zscore-related functions: zscore_over_time(m[d]) and zscore(q) by (...) 2020-08-03 21:52:15 +03:00
binary_op.go vendor: update github.com/VictoriaMetrics/metricsql from v0.4.3 to v0.5.1 2020-09-03 16:33:23 +03:00
doc.go lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:30:06 +03:00
go.mod vendor: update github.com/VictoriaMetrics/metricsql from v0.2.10 to v0.3.0 2020-08-06 21:45:33 +03:00
go.sum vendor: update github.com/VictoriaMetrics/metricsql from v0.2.10 to v0.3.0 2020-08-06 21:45:33 +03:00
lexer.go app/vmselect/promql: properly parse escaped multibyte utf8 code sequences in metric names and labels names 2021-01-13 10:59:32 +02: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 label_uppercase(q, label1, ... labelN) and label_lowercase(q, label1, ... labelN) functions 2020-12-03 21:46:18 +02:00
parser.go vendor: update github.com/VictoriaMetrics/metricsql from v0.4.3 to v0.5.1 2020-09-03 16:33:23 +03: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 lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:30:06 +03:00
rollup.go app/vmselect/promql: add tfirst_over_time(m[d]) and tlast_over_time(m[d]) MetricsQL functions for returning timestamps for the first and the last samples in m over d 2021-01-12 16:12:47 +02:00
transform.go app/vmselect/promql: add label_uppercase(q, label1, ... labelN) and label_lowercase(q, label1, ... labelN) functions 2020-12-03 21:46:18 +02: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.