Commit Graph

27 Commits (7289d41940bb05a4a79c0a4debcc86d06725562e)

Author SHA1 Message Date
Carrie Edwards 7289d41940
Add tests for relabeling of type and unit labels (#16743) 4 days ago
bwplotka 36cf85fc1e Addressed comments. 5 months ago
bwplotka 80d702afdc Fixed rulefmt UTF-8 expectations. 5 months ago
bwplotka 7263dfe50e Fixed relabelling; allowing UTF-8 in targetLabel. 5 months ago
Ben Ye 872e2db2a9
Implement json encoder/decoder for regexp (#15383) 7 months ago
Mario Fernandez 5814920601
Fix: optimize .* regexp performance 9 months ago
Marco Pracucci d4f098ae80
Fix relabel.Regexp zero value marshalling (#14517) 11 months ago
Oleksandr Redko f10c3454e9 Enable perfsprint linter and fix up code 1 year ago
Liam Howe 35d897ced4 Add test case for default regex explicitly provided 1 year 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 1 year ago
Bryan Boreham 17f48f2b3b Tests: use replacement DeepEquals in more places 1 year 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 9ab7e3b3de relabel: refactor: extract config.Validate method 2 years ago
Bryan Boreham e278195e39
Cherry-pick bugfix #12322 and create v2.43.1 (#12324) 2 years ago
Bryan Boreham 7a48a266b6
labels: respect Set after Del in Builder (#12322) 2 years ago
Bryan Boreham fe9fe0e1e5 Update package model/relabel tests for new labels.Labels type 3 years ago
Julien Pivotto 005ede70de relabel: add keepequal/dropequal relabel action 3 years ago
Bryan Boreham 8b863c42dd
Optimise relabeling by re-using memory (#11147) 3 years ago
Paschalis Tsilias 4f3791024a
Drop extra string held in relabel.Regexp struct (#10846) 3 years ago
Julien Pivotto 71dbb4d091
Add lowercase and uppercase relabel action (#10641) 3 years ago
beorn7 c954cd9d1d Move packages out of deprecated pkg directory 4 years ago
Julien Pivotto 22cfa10685 Add hashmod relabeling test with hasmod and a newline 4 years ago
Julien Pivotto 6c56a1faaa
Testify: move to require (#8122) 5 years ago
Julien Pivotto 1282d1b39c
Refactor test assertions (#8110) 5 years ago
Julien Pivotto 4e5b1722b3
Move away from testutil, refactor imports (#8087) 5 years ago
Bartek Płotka 62c8337e77 Moved configuration into `relabel` package. (#4955) 7 years ago
Elif T. Kuş 57dcdfb15f Rewrote tests with testutil for several test files (#4086) 7 years ago
Fabian Reinartz 86cb0f30fd pkg/relabel: add relabel pkg using new labels 9 years ago
Tristan Colgate-McFarlane 4d9134e6d8 Add labeldrop and labelkeep actions. (#2279) 9 years ago
Matti Savolainen 5a1e909b5d Make TargetLabel in RelabelConfig a string 9 years ago
Matti Savolainen bdaf0ec6a2 simplify regex 9 years ago
Matti Savolainen 23be3dab53 test label name validation 9 years ago
Matti Savolainen 56e8e7cac3 Allow target_label to be expanded in replace label 9 years ago
Frederic Branczyk 7714b9c781 move relabeling functionality to its own package 9 years ago
Matt Bostock 329a00e44f Relabel: Document whole label set is dropped 9 years ago
Julius Volz f63a899744 Change config regexes to full-string matches. 10 years ago
Fabian Reinartz d6d88f8950 Add missing license headers 10 years ago
Fabian Reinartz 306e8468a0 Switch from client_golang/model to common/model 10 years ago
Brian Brazil e1d5eb52f2 retrieval: Don't include unmatched source of regex in replacement. 10 years ago
Brian Brazil 4e70a0a14e Retrieval: Add relabel action to map label names with a regex. 10 years ago
Miek Gieben caaa3de4ff Make HashMod use MD5 instead of FNV 10 years ago
Brian Brazil 682f949ab1 Add 'hashmod' relabel action. 10 years ago
Fabian Reinartz 0af1cff8af config: simplify default config handling. 10 years ago
Fabian Reinartz 5fbde88919 Switch config to YAML format. 10 years ago
Fabian Reinartz 945c49a2dd Add relabelling to target management. 10 years ago