prometheus/web/ui/module/lezer-promql/src
Arve Knudsen de16f5e387
[FEATURE] PromQL: Add experimental info function MVP (#14495)
The `info` function is an experiment to improve UX
around including labels from info metrics.
`info` has to be enabled via the feature flag `--enable-feature=promql-experimental-functions`.

This MVP of info simplifies the implementation by assuming:
* Only support for the target_info metric
* That target_info's identifying labels are job and instance

Also:
* Encode info samples' original timestamp as sample value
* Deduce info series select hints from top-most VectorSelector

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Ying WANG <ying.wang@grafana.com>
Co-authored-by: Augustin Husson <augustin.husson@amadeus.com>
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Co-authored-by: Björn Rabenstein <github@rabenste.in>
Co-authored-by: Bryan Boreham <bjboreham@gmail.com>
2024-10-16 13:52:11 +01:00
..
highlight.js adapt the lezer grammar and codemirror autocompletion with duration and number that are equivalent (#14417) 2024-07-31 15:31:42 +02:00
promql.grammar [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
tokens.js feat: add limitk() and limit_ratio() operators (#12503) 2024-07-03 22:18:57 +02:00