/lezer-promql-tree-viz

A simple application for visualizing promql-lezer trees

Primary LanguageTypeScript

Lezer-promql tree visualization

A simple application based off the logQL tree visualization. Visualizes the structure of the lezer tree and renders the node type, index, from, and to. Make sure to update the version of prometheus-io/lezer-promql in package.json to the version you are working with. By default, it's using the latest version used in Grafana.

To build default tree visualization:

yarn dev

To build against a local version of lezer-promql, make sure to follow the instructions to build lezer-promql and then update the package.json to point to the local version:

"@prometheus-io/lezer-promql": "file:/Users/USERNAME/projects/prometheus/web/ui/module/lezer-promql/dist",
image