Return whether a metric is about a pod or not.
        It can be about containers, pods, or higher levels in the cgroup hierarchy
        and we don't want to report on that.
        :param metric
        :return bool

def _is_pod_metric(labels):
        """
        Return whether a metric is about a pod or not.
        It can be about containers, pods, or higher levels in the cgroup hierarchy
        and we don't want to report on that.
        :param metric
        :return bool
        """
        if 'container_name' in labels:
            if labels['container_name'] == 'POD':
                return True
            # containerd does not report container_name="POD"
            elif labels['container_name'] == '' and labels.get('pod_name', False):
                return True
        # container_cpu_usage_seconds_total has an id label that is a cgroup path
        # eg: /kubepods/burstable/pod531c80d9-9fc4-11e7-ba8b-42010af002bb
        # FIXME: this was needed because of a bug:
        # https://github.com/kubernetes/kubernetes/pull/51473
        # starting from k8s 1.8 we can remove this
        if 'id' in labels:
            if labels['id'].split('/')[-1].startswith('pod'):
                return True
        return False