From: Brian Warner Date: Fri, 20 Feb 2009 21:29:20 +0000 (-0700) Subject: storage: include reserved_space in stats X-Git-Tag: allmydata-tahoe-1.4.0~171 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/install.html?a=commitdiff_plain;h=ff6907a557ed6f9819386d183d48f41d46146671;p=tahoe-lafs%2Ftahoe-lafs.git storage: include reserved_space in stats --- diff --git a/src/allmydata/storage/server.py b/src/allmydata/storage/server.py index a6580169..7971113d 100644 --- a/src/allmydata/storage/server.py +++ b/src/allmydata/storage/server.py @@ -135,6 +135,7 @@ class StorageServer(service.MultiService, Referenceable): # remember: RIStatsProvider requires that our return dict # contains numeric values. stats = { 'storage_server.allocated': self.allocated_size(), } + stats["storage_server.reserved_space"] = self.reserved_space for category,ld in self.get_latencies().items(): for name,v in ld.items(): stats['storage_server.latencies.%s.%s' % (category, name)] = v