Our great sponsors
-
greptimedb
An open-source, cloud-native, distributed time-series database with PromQL/SQL/Python supported. Available on GreptimeCloud.
-
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.
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.
All the code is now open sourced on GitHub, find it here.
Interesting. There is one existing parser, that I've used with success https://github.com/HewlettPackard/prometheus-parser-rs . I wonder how they compare.
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.
Related posts
- GreptimeDB: A fast and cost-effective alternative to InfluxDB
- Another distributed time-series database written in Rust
- Another distributed time-series database written in Rust
- What's everyone working on this week (49/2023)?
- New release of Parseable [Log analytics system written in Rust] is now available