Commit Graph

37 Commits (bwplotka-patch-1)

Author SHA1 Message Date
Ben Ye 872e2db2a9
Implement json encoder/decoder for regexp (#15383) 1 year ago
Matthieu MOREL af1a19fc78 enable errorf rule from perfsprint linter 1 year ago
Mario Fernandez 5814920601
Fix: optimize .* regexp performance 1 year ago
Marco Pracucci d4f098ae80
Fix relabel.Regexp zero value marshalling (#14517) 1 year ago
Oleksandr Redko f10c3454e9 Enable perfsprint linter and fix up code 2 years ago
Arve Knudsen d699dc3c77
Fix language in docs and comments (#14041) 2 years ago
Liam Howe 35d897ced4 Add test case for default regex explicitly provided 2 years ago
Liam Howe 5d97f17ff1 Replace MarshalYAML() with IsZero() method for Regexp 2 years ago
Liam Howe 835dfa7eb6 Implement MarshalYAML for relabel.Config so that we do not generate a regex field if it was not provided in the first place 2 years ago
roger.wang 7e8f03663a Code optimization: The relabel operation is used very frequently, and strconv.FormatInt() with better performance should be used. 2 years ago
Bryan Boreham 17f48f2b3b Tests: use replacement DeepEquals in more places 2 years ago
Xiaochao Dong (@damnever) b3b5c0022e Simplify the logic as per the comments 2 years ago
Xiaochao Dong (@damnever) 1601b2a79e check new line in target 2 years ago
Xiaochao Dong (@damnever) 2d0d333371 Fix lint issue 2 years ago
Xiaochao Dong (@damnever) 20e3c295ae Optimize constant label pair adding with relabel.Replace 2 years ago
Bryan Boreham 0289dd6157 relabel: blank replacement deletes label post-regexp 2 years ago
Bryan Boreham 000182e4b8 relabel: check validity of all test cases 2 years ago
Bryan Boreham 2d4c367d87 relabel: stricter check that target labels are valid 2 years ago
Bryan Boreham 9ab7e3b3de relabel: refactor: extract config.Validate method 2 years ago
Bryan Boreham e278195e39
Cherry-pick bugfix #12322 and create v2.43.1 (#12324) 3 years ago
Bryan Boreham 7a48a266b6
labels: respect Set after Del in Builder (#12322) 3 years ago
Bryan Boreham b987afa7ef labels: simplify call to get Labels from Builder 3 years ago
Bryan Boreham 11d019ed5a relabel: keep intermediate results in labels.Builder 3 years ago
Renning Bruns 5ec1b4baaf
make hashmod a lot easier to read and a little faster (#11551) 3 years ago
Bryan Boreham fe9fe0e1e5 Update package model/relabel tests for new labels.Labels type 3 years ago
Bryan Boreham 8ad7b64c0f Update package model/relabel for new labels.Labels type 3 years ago
Julien Pivotto 005ede70de relabel: add keepequal/dropequal relabel action 3 years ago
Douglas Camata 28a66e183d Update relabel.Process comment 3 years ago
Bryan Boreham 8b863c42dd
Optimise relabeling by re-using memory (#11147) 3 years ago
Matthieu MOREL c2b4de3611
refactor (package model): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10747) 4 years ago
Paschalis Tsilias 4f3791024a
Drop extra string held in relabel.Regexp struct (#10846) 4 years ago
Julien Pivotto 71dbb4d091
Add lowercase and uppercase relabel action (#10641) 4 years ago
Julien Pivotto 9a2e93228e
Switch to grafana/regexp everywhere (#10268) 4 years ago
beorn7 c954cd9d1d Move packages out of deprecated pkg directory 4 years ago