Commit Graph

16 Commits (00d23c968953ff83bad5a7a3d64a5e1cf51b467b)

Author SHA1 Message Date
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
Liam Howe 35d897ced4 Add test case for default regex explicitly provided 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
Bryan Boreham 17f48f2b3b Tests: use replacement DeepEquals in more places 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) 3 years ago
Bryan Boreham 7a48a266b6
labels: respect Set after Del in Builder (#12322) 3 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) 4 years ago
Julien Pivotto 71dbb4d091
Add lowercase and uppercase relabel action (#10641) 4 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 5 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) 8 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 10 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. 11 years ago
Fabian Reinartz 0af1cff8af config: simplify default config handling. 11 years ago
Fabian Reinartz 5fbde88919 Switch config to YAML format. 11 years ago
Fabian Reinartz 945c49a2dd Add relabelling to target management. 11 years ago