From: Brian Warner Date: Wed, 25 Jun 2008 00:21:18 +0000 (-0700) Subject: storage: record latency stats in a flat dict, not nested, to conform to RIStatsProvider X-Git-Tag: allmydata-tahoe-1.2.0~65 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/frontends/%22news.html/?a=commitdiff_plain;h=af4e4dc8478ef3947b69686f8fe71c321d940da5;p=tahoe-lafs%2Ftahoe-lafs.git storage: record latency stats in a flat dict, not nested, to conform to RIStatsProvider --- diff --git a/src/allmydata/storage.py b/src/allmydata/storage.py index d5a406a0..cba2a92f 100644 --- a/src/allmydata/storage.py +++ b/src/allmydata/storage.py @@ -786,7 +786,9 @@ class StorageServer(service.MultiService, Referenceable): stats = { 'storage_server.allocated': self.allocated_size(), } if self.consumed is not None: stats['storage_server.consumed'] = self.consumed - stats['storage_server.latencies'] = self.get_latencies() + for category,ld in self.get_latencies().items(): + for name,v in ld.items(): + stats['storage_server.latencies.%s.%s' % (category, name)] = v return stats def allocated_size(self):