mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 06:59:40 -08: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.go | ||
lex_test.go | ||
parse.go | ||
parse_test.go | ||
prettier.go | ||
prettier_rules.md | ||
prettier_test.go | ||
printer.go | ||
printer_test.go | ||
value.go |