mirror of
https://github.com/prometheus/prometheus
synced 2025-01-16 03:41:50 +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 |
||
---|---|---|
.. | ||
fuzz-data | ||
parser | ||
testdata | ||
bench_test.go | ||
engine_test.go | ||
engine.go | ||
functions_test.go | ||
functions.go | ||
fuzz_test.go | ||
fuzz.go | ||
promql_test.go | ||
quantile.go | ||
query_logger_test.go | ||
query_logger.go | ||
test_test.go | ||
test.go | ||
value_test.go | ||
value.go |