VictoriaMetrics/lib/promrelabel
Aliaksandr Valialkin 75c3514c5c lib/promrelabel: add keep_metrics and drop_metrics actions to relabeling rules
These actions simlify metrics filtering. For example,

- action: keep_metrics
  regex: 'foo|bar|baz'

would leave only metrics with `foo`, `bar` and `baz` names, while the rest of metrics will be deleted.

The commit also makes possible to split long regexps into multiple lines. For example, the following config is equivalent to the config above:

- action: keep_metrics
  regex:
  - foo
  - bar
  - baz
2021-09-09 16:25:09 +03:00
..
testdata lib/promrelabel: add keep_metrics and drop_metrics actions to relabeling rules 2021-09-09 16:25:09 +03:00
config_test.go lib/promrelabel: add keep_metrics and drop_metrics actions to relabeling rules 2021-09-09 16:25:09 +03:00
config.go lib/promrelabel: add keep_metrics and drop_metrics actions to relabeling rules 2021-09-09 16:25:09 +03:00
relabel_test.go lib/promrelabel: add keep_metrics and drop_metrics actions to relabeling rules 2021-09-09 16:25:09 +03:00
relabel_timing_test.go app/{vmagent,vminsert}: follow-up after 2fe045e2a4 2021-06-04 20:33:22 +03:00
relabel.go lib/promrelabel: add tests for labelsToString() function 2021-06-04 20:42:14 +03:00
sort_test.go app/vmagent: initial implementation for vmagent 2020-02-23 17:31:54 +02:00
sort.go app/vmagent: initial implementation for vmagent 2020-02-23 17:31:54 +02:00