mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-25 18:52:41 -04:00
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 | ||