Hello,
I’m facing an issue where I can’t properly save a metric;
Inside a k8s cluster I have a rule inside a servicemonitor.yaml
file that drops any metric coming from namespaces that match a specific regex, something like:
- sourceLabels: [namespace]
regex: z{3,6}
action: drop
this works, but now I have to implement a way to save a single metric, specifically kube_namespace_created
before dropping all the others, only for those namespace that match the regex.
Can someone give me an heads up? Thanks