def iter_hist_buckets(hist):
    """Return buckets for a histogram as a generator
    """
    for full_name, labels, value in hist.collect()[0].samples:
        if full_name.endswith('_bucket'):
            yield full_name, labels, value
