2019-12-25 20:35:47 +01:00
|
|
|
// Package metricsql implements MetricsQL parser.
|
|
|
|
//
|
2020-01-02 22:43:29 +01:00
|
|
|
// This parser can parse PromQL. Additionally it can parse all the MetricsQL extensions.
|
2020-02-10 22:02:43 +01:00
|
|
|
// See https://github.com/VictoriaMetrics/VictoriaMetrics/wiki/MetricsQL for details about MetricsQL extensions.
|
2019-12-25 20:35:47 +01:00
|
|
|
//
|
|
|
|
// 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.
|
2020-01-02 22:43:29 +01:00
|
|
|
// // See Parse examples for more details.
|
2019-12-25 20:35:47 +01:00
|
|
|
//
|
|
|
|
package metricsql
|