prometheus/model
Bryan Boreham b987afa7ef labels: simplify call to get Labels from Builder
It took a `Labels` where the memory could be re-used, but in practice
this hardly ever benefitted. Especially after converting `relabel.Process`
to `relabel.ProcessBuilder`.

Comparing the parameter to `nil` was a bug; `EmptyLabels` is not `nil`
so the slice was reallocated multiple times by `append`.

Lastly `Builder.Labels()` now estimates that the final size will depend
on labels added and deleted.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-03-22 17:05:20 +00:00
..
exemplar
histogram Change nested ifs to a switch 2023-03-14 14:22:20 -06:00
labels labels: simplify call to get Labels from Builder 2023-03-22 17:05:20 +00:00
metadata Introduce TSDB changes for appending metadata to the WAL (#10972) 2022-07-19 10:58:52 +02:00
relabel labels: simplify call to get Labels from Builder 2023-03-22 17:05:20 +00:00
rulefmt Add rulefmt tests 2023-01-19 10:44:35 +01:00
textparse Add Exemplars support for all time series 2023-03-03 17:09:17 -08:00
timestamp
value