VictoriaMetrics/lib/promrelabel/testdata
Aliaksandr Valialkin d6bd956930 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:18:21 +03:00
..
invalid_config.yml app/vmagent: initial implementation for vmagent 2020-02-23 13:36:03 +02:00
relabel_configs_valid.yml lib/promrelabel: add keep_metrics and drop_metrics actions to relabeling rules 2021-09-09 16:18:21 +03:00