Commit Graph

37 Commits (742979a3e55b4427f2407a76c48379a646158e02)

Author SHA1 Message Date
Julien Pivotto 5583c77b3a
Merge pull request #12095 from damnever/unnecessary-sort
2 years ago
Xiaochao Dong (@damnever) 36fc1158b5 Remove unnecessary sort
2 years ago
Bryan Boreham d740abf0c6 model/labels: add Get and Range to Builder
2 years ago
Bryan Boreham ff993b279a
Merge pull request #12073 from bboreham/slices-sort2
2 years ago
Bryan Boreham 38c6d3da9f labels: use slices.Sort for better performance
2 years ago
Bryan Boreham a07a0be024 Add benchmark for labels.Builder
2 years ago
Bryan Boreham 30297f0d9b stringlabels: size buffer for added labels
2 years ago
Bryan Boreham 35026fb26d
Merge pull request #11746 from prometheus/remove-microbenchmarks
2 years ago
Bryan Boreham f03b8d0968 Add benchmark copying labels
2 years ago
Bryan Boreham 6136ae67e0 labels: shrink by making internals a single string
2 years ago
Bryan Boreham 10b27dfb84 Simplify IndexReader.Series interface
2 years ago
Bryan Boreham b10fd9aea3 model/labels: add a basic test for ScratchBuilder
2 years ago
Bryan Boreham cbf432d2ac Update package labels tests for new labels.Labels type
2 years ago
Bryan Boreham 617bee60f1 labels: use ScratchBuilder in ReadLabels
2 years ago
Bryan Boreham 2b8b8d9ac7 labels: new methods to work without access to internals
2 years ago
Bryan Boreham ea7345a09c labels: improve comment on Builder.Set
2 years ago
Bryan Boreham a19b369f9e labels: avoid lint warning on New()
2 years ago
Julien Pivotto bb323db613
Merge pull request #11074 from damnever/fix/datamodelvalidation
2 years ago
Xiaochao Dong (@damnever) 9979024a30 Report error if the series contains invalid metric names or labels during scrape
2 years ago
Bryan Boreham 8d4140a06e labels: note that Hash may change
2 years ago
Bryan Boreham 5421c778ba labels: in tests use labels.FromStrings
2 years ago
Cosrider bef6556ca5
delete redundant alias (#11180)
2 years ago
Bryan Boreham 8b863c42dd
Optimise relabeling by re-using memory (#11147)
2 years ago
Bryan Boreham a7f19b5775 labels: add a test for JSON and YAML marshalling
2 years ago
Bryan Boreham 10699c37a3 labels: test BytesWithoutLabels does not remove __name__ by default
2 years ago
Bryan Boreham d46ef0aa8e labels: tweak BenchmarkLabels_Get()
2 years ago
Bryan Boreham 24ebff9c4a labels: don't test that Hash() works on unordered labels
2 years ago
Bryan Boreham fb2d883f1e labels: test Compare without knowing the exact result
2 years ago
Matthieu MOREL c2b4de3611
refactor (package model): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10747)
2 years ago
Bryan Boreham 2e2c014d52
Labels: optimise creation of signature with/without labels (#10667)
3 years ago
Łukasz Mierzwa b11062bfcc
Don't count added labels when initializing slice (#10756)
3 years ago
Łukasz Mierzwa 08262454a3
Preallocate Labels in labels.Builder (#10749)
3 years ago
Łukasz Mierzwa 89de30a0b7
Avoid reallocating map in MatchLabels (#10715)
3 years ago
Nick Pillitteri 53ac9d6d66
Compare equality of label.Label structs directly (#10427)
3 years ago
Łukasz Mierzwa da23c4649a
Enable misspell check in golangci-lint (#10393)
3 years ago
Bryan Boreham 579331446a
Allow downstream projects to use faster regexp (#10251)
3 years ago
beorn7 c954cd9d1d Move packages out of deprecated pkg directory
3 years ago