Skip to content

dmitryk-dk/metricsql

 
 

Repository files navigation

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.

About

Standalone PromQL and MetricsQL parser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%