def find_sample(metric, suffix, labels):
    """Find a sample where all the provided labels match"""
    full_sample_name = f"{metric.name}{suffix}"
    for sample in metric.samples:
        found = sample.name == full_sample_name
        for k, v in labels.items():
            if sample.labels.get(k, None) != v:
                found = False
                break
        if found:
            return sample
    return None