mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
.. | ||
binaryop | ||
aggr.go | ||
binary_op.go | ||
doc.go | ||
lexer.go | ||
LICENSE | ||
optimizer.go | ||
parser.go | ||
README.md | ||
regexp_cache.go | ||
rollup.go | ||
transform.go | ||
utils.go |
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.