Relabeling pod name in prometheus

5/20/2020

I'm running Prometheus-Operator and using Kubernetes Service-Discovery for monitoring all the running pods. I have a few pods with name myapp-frontend-node-1q2ewq3q4e32. How do I create a relabel configuration that will change the name of the pods from the above to something like myapp-frontend-node?

-- Tomer Leibovich
kubernetes
prometheus
prometheus-operator

0 Answers