The below relabeling rule from Victoria Metrics is useful for matching
accurate ports and dropping unwanted targets. - action: keep_if_equal
source_labels:
[__meta_kubernetes_service_annotation_prometheus_io_port,
__meta_kubernetes_pod_container_port_number]
Does anyone know how we can compare two labels using Prometheus Relabeling
rules?
Based on my analysis, Prometheus doesn't support regex patterns on
1. backreferences like \1
2. lookaheads or lookbehinds
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/7b8c9c3c-a69c-4ec0-af57-3679cae3c3b3n%40googlegroups.com.