]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
munin/tahoe_introstats: add line for distinct-storage-hosts (which counts machines...
authorBrian Warner <warner@allmydata.com>
Tue, 18 Nov 2008 22:32:38 +0000 (15:32 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 18 Nov 2008 22:32:38 +0000 (15:32 -0700)
misc/munin/tahoe_introstats

index 52c743c379b10eb7bcb3baab166c2948d47eb4bb..556762fb6f8087351b452a5fe6d8e09dfb92ac59 100644 (file)
@@ -11,6 +11,8 @@ graph_category tahoe
 graph_info This graph shows the number of hosts announcing and subscribing to various services
 storage_server.label Storage Servers
 storage_server.draw LINE1
+storage_hosts.label Distinct Storage Hosts
+storage_hosts.draw LINE1
 storage_client.label Clients
 storage_client.draw LINE2
 """
@@ -24,5 +26,6 @@ url = os.environ["url"]
 
 data = simplejson.loads(urllib.urlopen(url).read())
 print "storage_server.value %d" % data["announcement_summary"]["storage"]
+print "storage_hosts.value %d" % data["announcement_distinct_hosts"]["storage"]
 print "storage_client.value %d" % data["subscription_summary"]["storage"]