def _submit_sample_histogram_buckets(self, metric_name, sample, scraper_config, hostname=None):
    if (('lower_bound' not in sample[self.SAMPLE_LABELS]) or ('le' not in sample[self.SAMPLE_LABELS])):
        self.log.warning('Metric: %s was not containing required bucket boundaries labels: %s', metric_name, sample[self.SAMPLE_LABELS])
        return
    sample[self.SAMPLE_LABELS]['le'] = str(float(sample[self.SAMPLE_LABELS]['le']))
    sample[self.SAMPLE_LABELS]['lower_bound'] = str(float(sample[self.SAMPLE_LABELS]['lower_bound']))
    if (sample[self.SAMPLE_LABELS]['le'] == sample[self.SAMPLE_LABELS]['lower_bound']):
        self.log.warning('Metric: %s has bucket boundaries equal, skipping: %s', metric_name, sample[self.SAMPLE_LABELS])
        return
    tags = self._metric_tags(metric_name, sample[self.SAMPLE_VALUE], sample, scraper_config, hostname)
    self.submit_histogram_bucket(self._metric_name_with_namespace(metric_name, scraper_config), sample[self.SAMPLE_VALUE], float(sample[self.SAMPLE_LABELS]['lower_bound']), float(sample[self.SAMPLE_LABELS]['le']), True, hostname, tags)
def _submit_sample_histogram_buckets(self, metric_name, sample, scraper_config, hostname=None):
    if (('lower_bound' not in sample[self.SAMPLE_LABELS]) or ('le' not in sample[self.SAMPLE_LABELS])):
        self.log.warning('Metric: %s was not containing required bucket boundaries labels: %s', metric_name, sample[self.SAMPLE_LABELS])
        return
    sample[self.SAMPLE_LABELS]['le'] = str(float(sample[self.SAMPLE_LABELS]['le']))
    sample[self.SAMPLE_LABELS]['lower_bound'] = str(float(sample[self.SAMPLE_LABELS]['lower_bound']))
    if (sample[self.SAMPLE_LABELS]['le'] == sample[self.SAMPLE_LABELS]['lower_bound']):
        self.log.warning('Metric: %s has bucket boundaries equal, skipping: %s', metric_name, sample[self.SAMPLE_LABELS])
        return
    tags = self._metric_tags(metric_name, sample[self.SAMPLE_VALUE], sample, scraper_config, hostname)
    self.submit_histogram_bucket(self._metric_name_with_namespace(metric_name, scraper_config), sample[self.SAMPLE_VALUE], float(sample[self.SAMPLE_LABELS]['lower_bound']), float(sample[self.SAMPLE_LABELS]['le']), True, hostname, tags)