VictoriaMetrics/lib/promrelabel
Aliaksandr Valialkin 3a444bb7bb lib/promrelabel: add support for keep_if_equal and drop_if_equal actions to relabel configs
These actions may be useful for filtering out unneeded targets and/or metrics if they contain equal label values.
For example, the following rule would leave the target only if __meta_kubernetes_annotation_prometheus_io_port
equals __meta_kubernetes_pod_container_port_number:

  - action: keep_if_equal
    source_labels: [__meta_kubernetes_annotation_prometheus_io_port, __meta_kubernetes_pod_container_port_number]
2020-06-23 17:29:19 +03:00
..
testdata lib/promrelabel: add support for keep_if_equal and drop_if_equal actions to relabel configs 2020-06-23 17:29:19 +03:00
config_test.go lib/promrelabel: add support for keep_if_equal and drop_if_equal actions to relabel configs 2020-06-23 17:29:19 +03:00
config.go lib/promrelabel: add support for keep_if_equal and drop_if_equal actions to relabel configs 2020-06-23 17:29:19 +03:00
relabel_test.go lib/promrelabel: add support for keep_if_equal and drop_if_equal actions to relabel configs 2020-06-23 17:29:19 +03:00
relabel_timing_test.go app/vmagent: initial implementation for vmagent 2020-02-23 17:31:54 +02:00
relabel.go lib/promrelabel: add support for keep_if_equal and drop_if_equal actions to relabel configs 2020-06-23 17:29:19 +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