Wonder if I can get some help. We are seeing an oddity here. Within my configuration, we are using kubernetes_sd_configs and I have the following in the relabel section of my scrape config:
- source_labels: [__meta_kubernetes_namespace] separator: ; regex: (^mykub-test--[^-]*) target_label: kubernetes_customer_env_name replacement: $1 action: replace This works fine if the namespace is just mykub-test--herenow but not for namespaces like mykub-test--anothertest2--test123 . Basically, I want to strip off the "--test123" (or ignore it) in the later example. Any suggestions? -- 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/aaa440a4-2711-4de8-8c6e-e0533fcc308fn%40googlegroups.com.

