Skip to content

Releases: prometheus-community/promql-langserver

v0.5.1

30 May 12:18
8ea8e68
Compare
Choose a tag to compare

A bug in v0.5.0 has been fixed that caused error messages in VS Code.

v0.5.0

30 May 11:42
b2be2c0
Compare
Choose a tag to compare

The main new feature of this release is a experimental REST API to offer some features of the language server without the complexity of the stateful language server protocol. The API can be included in other software using the rest package in this repo.

Note that this is still experimental and might be subject to changes of any kind.

Other changes include:

  • Updated dependencies. Most notably a couple of bugs in the upstream Prometheus parser were fixed.
  • Better completion filtering:
    • Label completions are only offered for labels that actually occur with the metric name in question.
    • Metric name completions employ a fuzzy match algorithm.
  • The new metadata endpoint of the Prometheus API is now used to provide better hover information and completions.
  • A number of bugfixes, e.g. in parsing YAML files, document synchronisation.
  • There exist a new PromQL plugin for Sublime Text 3.

For a full list of changes see here .

Thanks to all the new contributors that made this release possible!

v0.4.3

18 Feb 18:00
3224ad3
Compare
Choose a tag to compare

This is mainly a bug fix release:

  • Some edge cases in the YAML parser are resolved.
  • It is possible not to connect to a Prometheus server now.
  • Completion in YAML files is now more reliably triggered by the client.

v0.4.2

17 Feb 14:06
Compare
Choose a tag to compare

Changes:

  • The prefix of the extension settings scanned has been changed from prometheus to promql.

v0.4.1

14 Feb 12:49
Compare
Choose a tag to compare

Changes:

v0.4.0

11 Feb 17:19
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

New Features:

  • Sanity checks are performed after connecting to an Prometheus instance.
  • Label completions are filtered by metric name.
  • Hovertexts provide links to directly evaluate queries.
  • Go to definition for recording rules is supported.
  • The release now includes binaries built by the CI.

v0.3.0

24 Jan 20:49
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

This release brings the language server to a point where most basic features are implemented.

  • The new upstream Prometheus parser is used.
  • Completion works now for most cases.
  • The parser is far more tolerant against syntax errors and produces better error messages.
  • The Prometheus server that is used for meta data can be set by the client.

v0.2.0

07 Jan 20:59
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

This release adds:

  • Stability improvements
  • Completion and hover support for recording rules
  • Better heuristics for analysing YAML files
  • Function signature support

First Alpha Release

13 Nov 17:29
Compare
Choose a tag to compare
First Alpha Release Pre-release
Pre-release

This is a first pre-release that allows other people to test the Language Server. Don't expect anything to work.

Features at this time:

  • Connect to IDEs and text editors over stdio
  • Connect to remote clients over websocket or http
  • Sync document content with the client
  • Support plain PromQL queries
  • Support queries inside yaml files
  • Connect to a prometheus instance to get label and metric data
  • Show error messages for incorrect queries in the client
  • Show documentation on hover
    • Type information
    • Function documentation
    • Operator documentation
    • Metric and label help strings from a prometheus instance
    • Even when the Query has syntax errors
  • Completion
    • Functions
    • Metrics
    • Labels
    • Context sensitive, i.e respecting function argument types
    • Even when the Query has syntax errors
  • Signature information for functions (while typing)
  • (Linting)
  • (Formatting)