feature(app.py): adding queue_metrics to queues

publishing queue metrics for SRE

[none]
This commit is contained in:
Charlton Austin 2017-01-24 16:31:33 -05:00
parent 8755706454
commit 3fd8c8a60d
4 changed files with 9 additions and 5 deletions

View file

@ -5,8 +5,6 @@ from storage.distributedstorage import DistributedStorage
from storage.swift import SwiftStorage
from storage.downloadproxy import DownloadProxy
from urlparse import urlparse, parse_qs
STORAGE_DRIVER_CLASSES = {
'LocalStorage': LocalStorage,
'S3Storage': S3Storage,
@ -15,6 +13,7 @@ STORAGE_DRIVER_CLASSES = {
'SwiftStorage': SwiftStorage,
}
def get_storage_driver(location, metric_queue, chunk_cleanup_queue, storage_params):
""" Returns a storage driver class for the given storage configuration
(a pair of string name and a dict of parameters). """