Commit 80f61bac authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Adjusting to 6 parameters in the samples.

parent 646cfb3c
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -128,12 +128,7 @@ class MetricsPool:
                else:
                    raise Exception('Unsupported metric: {:s}'.format(raw_metric_name)) # pragma: no cover
                metric_data = method_to_metric_fields.setdefault(method_name, dict()).setdefault(metric_name, dict())
                child_samples = raw_metric_data._child_samples()
                for sample in child_samples:
                    print(type(sample))
                    print(len(sample))
                    print(sample)
                    field_name, labels, value, _, _ = sample
                for field_name, labels, value, _, _, _ in raw_metric_data._child_samples():
                    if field_name == '_bucket': bucket_bounds.add(labels['le'])
                    if len(labels) > 0: field_name = '{:s}:{:s}'.format(field_name, json.dumps(labels, sort_keys=True))
                    metric_data[field_name] = value