mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
5efe377a26
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 |
||
---|---|---|
.. | ||
binaryop | ||
aggr.go | ||
binary_op.go | ||
doc.go | ||
go.mod | ||
go.sum | ||
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.