prometheus/promql/parser
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
..
posrange Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
ast.go [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
functions.go [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
generated_parser.y Merge pull request #14821 from charleskorn/nh-negative-multiplication-division 2024-09-19 14:07:37 +01:00
generated_parser.y.go Merge pull request #14821 from charleskorn/nh-negative-multiplication-division 2024-09-19 14:07:37 +01:00
lex.go Merge pull request #14821 from charleskorn/nh-negative-multiplication-division 2024-09-19 14:07:37 +01:00
lex_test.go Moves TestNativeHistogram_MulDivOperator to promql testing framework (#14688) 2024-08-29 16:42:35 +02:00
parse.go [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
parse_test.go [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
prettier.go Adds support for prettifying PromQL expression (#10544) 2022-07-07 18:13:36 +05:30
prettier_rules.md Adds support for prettifying PromQL expression (#10544) 2022-07-07 18:13:36 +05:30
prettier_test.go Prettifier: Add spaces with non-callable keywords (#11005) 2022-07-15 00:09:56 +02:00
printer.go PromQL: add short string method 2024-09-03 14:15:58 +01:00
printer_test.go support quoting in grouping label lists 2024-08-01 10:07:12 -04:00
value.go promql: use explicit type declare instead of string. (#7716) 2020-08-02 09:57:38 +01:00