Bundle of promql language for the Monaco Editor.
npm install monaco-promqlThis project provides a support for the Monaco editor that handles the PromQL (Prometheus Query Language) syntax (with syntax highlighting).
Initially the repository was owned by AmadeusITGroup and it has been transferred to the prometheus-community (Thanks to Julius Volz that helped us for that)
During the transfer, the repository and the package changed its name from monaco-languages-promql to the current one: monaco-promql.
| Version | command to use |
| --------------- | ------------------------------------- |
| >= 1.5 | npm install monaco-promql |
| >= 1.4 < 1.5 | npm install monaco-languages-promql |
https://prometheus-community.github.io/monaco-promql/
Here is a picture that displays what happen when you write a promQL expression:
!Display samples
> Samples coming from https://github.com/infinityworks/prometheus-example-queries
- How to use it in an react project.
- How to use it in an angular project.
shell script
npm install
npm run build
npm link
cd examples/
npm install
npm link monaco-promql
npm start
Then modify manually the monaco-promql import :/ "monaco-promql" -> "monaco-promql/lib"
``