mirror of
https://github.com/prometheus/prometheus
synced 2024-12-30 19:03:03 +00:00
56fefcd812
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 |
||
---|---|---|
.. | ||
ast.go | ||
functions.go | ||
generated_parser.y | ||
generated_parser.y.go | ||
lex_test.go | ||
lex.go | ||
parse_test.go | ||
parse.go | ||
prettier_rules.md | ||
prettier_test.go | ||
prettier.go | ||
printer_test.go | ||
printer.go | ||
value.go |