prometheus/web/ui/module/codemirror-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
..
client Split warnings and info annotations in API response (#14327) 2024-07-06 11:05:00 +02:00
complete [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
lint fix eslint warning for codemirror-promql 2021-09-15 13:38:48 +02:00
parser [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
test put every packages under the prometheus-io organization (#10849) 2022-06-13 15:19:07 +02:00
types [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
index.ts export newCompleteStrategy to avoid client import errors (#10448) 2022-03-18 14:29:35 +01:00
promql.ts Upgrade codemirror and lezer to the latest version (#10841) 2022-06-13 17:55:06 +02:00