prometheus/promql/parser
Bryan Boreham 56fefcd812 Update package promql for new labels.Labels type
We use `labels.Builder` to parse metrics, to avoid depending on the
internal implementation. This is not efficient, but the feature is only
used in tests. It wasn't efficient previously either - calling `Sort()`
after adding each label.

`createLabelsForAbsentFunction` also uses a Builder now, and gets
an extra `map` to replace the previous `Has()` usage.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

Fix up promql to compile with changes to Labels
2022-12-19 15:22:09 +00:00
..
ast.go Update go to 1.19, set min version to 1.18 (#11279) 2022-09-07 11:30:48 +02:00
functions.go promql: Add histogram_count and histogram_sum 2022-06-28 18:16:48 +02:00
generated_parser.y Update package promql for new labels.Labels type 2022-12-19 15:22:09 +00:00
generated_parser.y.go Update package promql for new labels.Labels type 2022-12-19 15:22:09 +00:00
lex_test.go Run gofumpt on all files (#10392) 2022-03-03 17:21:05 +01:00
lex.go Adds support for prettifying PromQL expression (#10544) 2022-07-07 18:13:36 +05:30
parse_test.go promql: in tests use labels.FromStrings 2022-09-09 13:34:49 +02:00
parse.go Switch from 'sanity' to more inclusive lanuage (#9376) 2022-11-28 17:09:18 +00:00
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
prettier.go Adds support for prettifying PromQL expression (#10544) 2022-07-07 18:13:36 +05:30
printer_test.go Prettifier: Add spaces with non-callable keywords (#11005) 2022-07-15 00:09:56 +02:00
printer.go Prettifier: Add spaces with non-callable keywords (#11005) 2022-07-15 00:09:56 +02:00
value.go promql: use explicit type declare instead of string. (#7716) 2020-08-02 09:57:38 +01:00