Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 825 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 825 Bytes

GoDoc Go Report

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.