From 8f59ac1251420428505d84f98ecea7bdc79cd678 Mon Sep 17 00:00:00 2001 From: Brad Ison Date: Wed, 14 Dec 2016 12:16:02 -0500 Subject: [PATCH] Don't record size in chunk upload metrics --- endpoints/v1/registry.py | 2 +- util/metrics/metricqueue.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/v1/registry.py b/endpoints/v1/registry.py index 543a8f4c2..c6f6f71f4 100644 --- a/endpoints/v1/registry.py +++ b/endpoints/v1/registry.py @@ -200,7 +200,7 @@ def put_image_layer(namespace, repository, image_id): start_time = time() store.stream_write(locations, path, sr) metric_queue.chunk_upload_time.Observe(time() - start_time, - labelvalues=[size_info.compressed_size, list(locations)[0]]) + labelvalues=[list(locations)[0]]) except IOError: logger.exception('Exception when writing image data') abort(520, 'Image %(image_id)s could not be written. Please try again.', image_id=image_id) diff --git a/util/metrics/metricqueue.py b/util/metrics/metricqueue.py index caf065ea5..cbb8e5fe4 100644 --- a/util/metrics/metricqueue.py +++ b/util/metrics/metricqueue.py @@ -75,7 +75,7 @@ class MetricQueue(object): self.chunk_upload_time = prom.create_histogram('chunk_upload_time', 'Registry blob chunk upload time', - labelnames=['chunk_size', 'storage_region']) + labelnames=['storage_region']) self.authentication_count = prom.create_counter('authenication_count', 'Authentication count',