VictoriaMetrics/lib/promrelabel
Aliaksandr Valialkin e1bd38fa97
lib/promrelabel: optimize matching for commonly used regex patterns in if option
The following regex patterns are optimized:

- literal string match, e.g. "foo"
- prefix match, e.g. "foo.*" and "foo.+"
- substring match, e.g. ".*foo.*" and ".+foo.+"
- alternate values match, e.g. "foo|bar|baz"
2022-08-26 14:55:13 +03:00
..
testdata lib/promrelabel: support action: graphite relabeling 2022-06-16 20:25:49 +03:00
config_test.go lib/regexutil: add Simplify() function for simplifying the regular expression 2022-08-26 11:57:43 +03:00
config.go lib/regexutil: add Simplify() function for simplifying the regular expression 2022-08-26 11:57:43 +03:00
graphite_test.go lib/promrelabel: support action: graphite relabeling 2022-06-16 20:25:49 +03:00
graphite_timing_test.go lib/promrelabel: support action: graphite relabeling 2022-06-16 20:25:49 +03:00
graphite.go lib/promrelabel: support action: graphite relabeling 2022-06-16 20:25:49 +03:00
if_expression_test.go app/vmagent: add ability to construct a label from multiple existing labels by referring them in the replacement field during relabeling 2022-08-21 22:49:24 +03:00
if_expression.go lib/promrelabel: optimize matching for commonly used regex patterns in if option 2022-08-26 14:55:13 +03:00
relabel_test.go lib/promrelabel: optimize action: {drop,keep,labeldrop,labelkeep} with anchored regex prefix 2022-08-25 23:24:38 +03:00
relabel_timing_test.go lib/promrelabel: optimize action: {drop,keep,labeldrop,labelkeep} with anchored regex prefix 2022-08-25 23:24:38 +03:00
relabel.go lib/promrelabel: optimize action: {labeldrop,labelkeep,keep,drop} with regex containing alternate values 2022-08-24 17:55:54 +03:00
sort_test.go app/vmagent: initial implementation for vmagent 2020-02-23 17:31:54 +02:00
sort.go lib/promscrape: optimize getScrapeWork() function 2022-04-20 15:34:18 +03:00