Hi All,
I am currently facing with a relabel config issue. I would like to drop all namespaces which not contain the word NAMESPACE1, For this aim I try with the following regex expression : relabel_configs: - source_labels: [__meta_kubernetes_namespace] regex: '^((?!NAMESPACE1).)*$' action: drop But I am facing with a syntax error (invalid orunsupported Perl syntax: `(?!` ) level=error ts=2020-03-24T10:07:01.722Z caller=main.go:740 err="error loading config from \"/etc/prometheus/prometheus.yml\": couldn't load configuration (--config.file=\"/etc/prometheus/prometheus.yml\"): parsing YAML file /etc/prometheus/prometheus.yml: error parsing regexp: invalid or unsupported Perl syntax: `(?!`" Any idea? Thanks Nabil L. -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/7c58a3ec-cebc-4208-8bf4-5413f1e86146%40googlegroups.com.