mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
15 lines
534 B
Go
15 lines
534 B
Go
// Package metricsql implements MetricsQL parser.
|
|
//
|
|
// This parser can parse PromQL. Additionally it can parse all the MetricsQL extensions.
|
|
// See https://github.com/VictoriaMetrics/VictoriaMetrics/wiki/MetricsQL for details about MetricsQL extensions.
|
|
//
|
|
// 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.
|
|
//
|
|
package metricsql
|