mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-27 00:21:07 +00:00
munin/tahoe_introstats: add line for distinct-storage-hosts (which counts machines instead of nodes)
This commit is contained in:
parent
994d97c644
commit
1e024d5e82
@ -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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user