Commit Graph

51 Commits (main)

Author SHA1 Message Date
Bryan Boreham 258fcbda6b [REFACTOR] Relabel: Remove unnecessary Process() function 3 months ago
Ben Kochie e14795bbf4
Remove copyright date from headers (#17785) 4 months ago
Ben Kochie 48956f60d7
Update modernize (#17471) 6 months ago
Julien Pivotto c9d4689e0b relabeling: Fix labelmap action validation with legacy metric name scheme 6 months ago
Julius Volz 8b1bd7d6c3 ui: Allow viewing detailed relabeling steps for each discovered target 6 months ago
Arve Knudsen 913cc8f72b
Replace gopkg.in/yaml.v2 with go.yaml.in/yaml/v2 (#17151) 8 months ago
beorn7 747c5ee2b1 Apply analyzer "modernize" to the whole codebase 8 months ago
Arve Knudsen 0a40df33fb
Make metric/label name validation scheme explicit (#16928) 8 months ago
Carrie Edwards 7289d41940
Add tests for relabeling of type and unit labels (#16743) 10 months ago
Owen Williams 94b43c5d4c utf8: Remove support for legacy global validation setting 1 year ago
bwplotka 36cf85fc1e Addressed comments. 1 year ago
bwplotka 80d702afdc Fixed rulefmt UTF-8 expectations. 1 year ago
bwplotka 7263dfe50e Fixed relabelling; allowing UTF-8 in targetLabel. 1 year ago
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 2 years ago
Marco Pracucci d4f098ae80
Fix relabel.Regexp zero value marshalling (#14517) 2 years 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 4 years ago
Douglas Camata 28a66e183d Update relabel.Process comment 4 years ago
Bryan Boreham 8b863c42dd
Optimise relabeling by re-using memory (#11147) 4 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 5 years ago