VictoriaMetrics/vendor/github.com/VictoriaMetrics/metricsql
Aliaksandr Valialkin 5efe377a26
app/vmselect/promql: add timestamp_with_name(m[d]) function
This function works the same as `timestamp()`, but doesn't remove source time series names.

See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/949#issuecomment-995222388
2021-12-15 23:37:07 +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: preserve the order of time series passed to limit_offset() function 2021-12-12 18:04:58 +02: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 lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:28:22 +03:00
go.mod vendor: update github.com/VictoriaMetrics/metricsql from v0.2.10 to v0.3.0 2020-08-06 21:45:21 +03:00
go.sum vendor: update github.com/VictoriaMetrics/metricsql from v0.2.10 to v0.3.0 2020-08-06 21:45:21 +03:00
lexer.go app/vmselect/promql: add mad(q) and outliers_mad(tolerance, q) functions to MetricsQL 2021-09-16 13:33:53 +03: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: add label_graphite_group() function for extracting groups from Graphite metric names 2021-11-03 13:19:08 +02:00
parser.go app/vmselect/promql: duration handling improvements in MetricsQL queries 2021-07-12 17:16:41 +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:45:54 +03:00
regexp_cache.go lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:28:22 +03:00
rollup.go app/vmselect/promql: add timestamp_with_name(m[d]) function 2021-12-15 23:37:07 +02:00
transform.go app/vmselect/promql: preserve the order of time series passed to limit_offset() function 2021-12-12 18:04:58 +02:00
utils.go app/vmselect: properly handle PromQL queries like scalar1 < metric < scalar2 like Prometheus does 2020-08-06 23:21:03 +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.