A Deep Dive into PromQL — Promql Parser v0.1.0 Written in Rust is Now Available

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • greptimedb

    An open-source, cloud-native, distributed time-series database with PromQL/SQL/Python supported. Available on GreptimeCloud.

  • To explore data stored in GreptimeDB through PromQL, GreptimeDB needs to provide the ability to parse the query into AST (abstract syntax tree), and retrieve data from memory or disk via logical and physical plans. Since there is no ready-to-use PromQL Rust Parser, our team decides to develop it by ourselves. We’re glad to announce that promql-parser v0.1.0 is now available.

  • promql-parser

    PromQL Rust parser

  • All the code is now open sourced on GitHub, find it here.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • prometheus-parser-rs

    a Rust library for parsing and validating Prometheus query expressions

  • Interesting. There is one existing parser, that I've used with success https://github.com/HewlettPackard/prometheus-parser-rs . I wonder how they compare.

  • grmtools

    Rust grammar tool libraries and binaries

  • prometheus-parser-rs implement the parser via pest, while promql-parser using grmtools, which is compatible with Yacc. promql-parser declares compatible with prometheus and covers most of the test cases in original Prometheus, which ensures you better compliance.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts