(labels)
return []
Get extra tags from metric labels
        label {
          name: "container_name"
          value: "kube-proxy"
        }
        :param labels: metric labels: iterable
        :return: list
Get extra tags from metric labels
        label {
          name: "container_name"
          value: "kube-proxy"
        }
        :param labels: metric labels: iterable
        :return: list
Get extra tags from metric labels label { name : container_name value : kube - proxy } : param labels : metric labels : iterable : return : list
def _get_kube_container_name(labels):
        """
        Get extra tags from metric labels
        label {
          name: "container_name"
          value: "kube-proxy"
        }
        :param labels: metric labels: iterable
        :return: list
        """
        container_name = CadvisorPrometheusScraperMixin._get_container_label(labels, "container")
        # k8s < 1.16
        if not container_name:
            container_name = CadvisorPrometheusScraperMixin._get_container_label(labels, "container_name")
        if container_name:
            return ["kube_container_name:%s" % container_name]
        return []
def _get_kube_container_name ( labels ) : container_name = CadvisorPrometheusScraperMixin . _get_container_label ( labels , "container" ) # k8s < 1.16 if not container_name : container_name = CadvisorPrometheusScraperMixin . _get_container_label ( labels , "container_name" ) if container_name : return [ "kube_container_name:%s" % container_name ] return [ ]