Use Prometheus "target relabeling" to extract cAdvisor's Docker image name without tag Use Prometheus "target relabeling" to extract cAdvisor's Docker image name without tag docker docker

Use Prometheus "target relabeling" to extract cAdvisor's Docker image name without tag


The image label is not a target label, it's on the metrics themselves. Thus you should use metric_relabel_configs rather than relabel_configs

My blog on Life of a Label explains how this works.