qmetrics.net

PromQL Parser

Rust lexer and parser for Prometheus PromQL queries

PromQL Parser is a Rust crate that lexes and parses PromQL expressions aligned with Prometheus query syntax. It targets embedders building tooling around Prometheus metrics queries.

Overview

PromQL Parser provides a PromQL lexer and parser intended to handle instant vector selectors and other expressions that match Prometheus query language rules. The crate is meant to be imported into Rust projects that need to read or analyze PromQL without calling Prometheus itself.

You can parse expressions from Rust code or run the bundled examples. The maintainers track compatibility with a specific Prometheus release and note that PromQL changes after that point are not guaranteed.

Community projects extend the parser or connect it to other systems through language bindings and integrations listed in the documentation. Known downstream uses are documented for teams that want reference implementations.

The project is licensed under Apache 2.0 and accepts contributions that add or fix PromQL parsing behavior.

Key features

  • PromQL lexer and parser
  • Instant vector selector parsing
  • Prometheus PromQL compliance target
  • Rust crate for embedding
  • Example programs in the repo
  • Community extensions and bindings
  • Documented known downstream uses

Use cases

  • Embed PromQL parsing in Rust services
  • Validate PromQL in monitoring tools
  • Build query analysis or linting tools
  • Experiment with PromQL syntax handling

Tags

Similar software

arthas

Live Java application diagnostic shell

Arthas attaches to running JVM processes so developers can inspect classes, trace methods, and watch traffic without restarting apps or redeploying code. It supports interactive CLI, telnet, websocket, and browser console access.

★ 37.6k⟳ 4 days agoApache-2.0

py-spy

Low-overhead sampling profiler for live Python programs

py-spy attaches to a running CPython process or launches one, sampling stacks without code changes and reporting via top, dump, or recorded flame graphs.

★ 15.7k⟳ 8 days agoMIT

Memray

Python memory profiler with native code allocation tracing

Memray records memory allocations in Python code, extension modules, and the interpreter, then produces reports such as flame graphs from CLI or library use.

★ 15.4k⟳ yesterdayApache-2.0

strace

Linux userspace syscall tracing utility

strace is a diagnostic and debugging utility for Linux with a command-line interface. It watches how processes interact with the kernel.

★ 2.7k⟳ 2 days agoLGPL-2.1

REA

MCP and CLI reverse-engineering toolkit for agents

REA connects coding agents and terminals to local analysis tools for binaries, Electron apps, websites, .NET, and Android targets. Setup registers MCP access and investigation skills via npm.

★ 480.8k⟳ todayMIT

Graphify

Codebase knowledge graph skill for AI coding assistants

Graphify maps a project’s code, docs, and media into a queryable local knowledge graph and installs as a skill for assistants such as Cursor and Claude Code.

★ 154.2k⟳ yesterdayApache-2.0