File: doc.go

package info (click to toggle)
golang-github-victoriametrics-metricsql 0.84.3%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Package metricsql implements MetricsQL parser.
//
// This parser can parse PromQL. Additionally it can parse all the MetricsQL extensions.
// See https://docs.victoriametrics.com/metricsql/ for details about MetricsQL.
//
// 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