<p>The metric <code>kube_pod_container_resource_requests_cpu_cores</code> from <code>kube-state-metrics</code> comes with the labels: </p>

<pre><code>kube_pod_container_resource_requests_cpu_cores{app="prometheus",chart="prometheus-8.1.0",component="kube-state-metrics",container="autoscaler",heritage="Tiller",instance="10.233.65.93:8080",job="kubernetes-service-endpoints",kubernetes_name="prometheus-kube-state-metrics",kubernetes_namespace="kube-system",kubernetes_node="k8st01",namespace="kube-system",node="k8snode",pod="kubedns-autoscaler-5db95c6cf5-cvqz4",release="prometheus"}
</code></pre>

<p>I want to make another label pod_name from pod , with the same values. In the end i want to have both <code>pod="kubedns-autoscaler-5db95c6cf5-cvqz4"</code> and <code>pod_name="kubedns-autoscaler-5db95c6cf5-cvqz4"</code></p>

<p>I used the followimng </p>

<pre><code>relabel_configs:
  - source_labels: [pod]
    target_label: pod_name
</code></pre>

<p>but it didn't work.</p>

<p>Try to use <code>metric_relabel_configs</code>. Your config block would look something like this:</p>

<pre><code>metric_relabel_configs:
  - source_labels: [pod]
    target_label: pod_name
</code></pre>
