Don't record size in chunk upload metrics

This commit is contained in:
Brad Ison 2016-12-14 12:16:02 -05:00
parent 2a6632cff4
commit 8f59ac1251
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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',