Coder Social home page Coder Social logo

mo-miro / monaco-promql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prometheus-community/monaco-promql

0.0 0.0 0.0 9.8 MB

PromQL support for the Monaco code editor

Home Page: https://prometheus-community.github.io/monaco-promql/

License: MIT License

JavaScript 12.27% TypeScript 87.73%

monaco-promql's Introduction

Monaco PromQL language CircleCI npm version License

Overview

This 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.

Installation

Language support is available on npm :

Version command to use
>= 1.5 npm install monaco-promql
>= 1.4 < 1.5 npm install monaco-languages-promql

Playground

If you want to test it, you have the last version available on the following website:

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

Usage

Contributions

Any contribution or suggestion would be really appreciated. Feel free to use the Issue section or to send a pull request.

Development

Run example with local version

npm install
npm run build
npm link
cd examples/<example-folder>
npm install
npm link monaco-promql
npm start
# Then modify manually the monaco-promql import :/ "monaco-promql" -> "monaco-promql/lib"

Roadmap

  • More usage documentation.
  • Provide the auto-completion support.
  • Versions mapping with PromQL.
  • More automation on release version in npmjs and angular gh-pages update

Credits

This repository is inspired by monaco-languages repository.

monaco-promql's People

Contributors

arendjr avatar celian-garcia avatar dependabot[bot] avatar msftgits avatar nexucis avatar prombot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.