mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
nova: Fix graph label
This commit is contained in:
parent
b3e31051f5
commit
c4e3217612
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ def get_name(metric, code):
|
||||||
if metric == "power_state":
|
if metric == "power_state":
|
||||||
return power_state.name(code)
|
return power_state.name(code)
|
||||||
elif metric in ["root_gb", "ephemeral_gb"]:
|
elif metric in ["root_gb", "ephemeral_gb"]:
|
||||||
return "%d_gb", code
|
return "%d gb" % code
|
||||||
else:
|
else:
|
||||||
return code
|
return code
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ def print_config(metric):
|
||||||
print 'graph_scale no'
|
print 'graph_scale no'
|
||||||
print 'graph_info This graph shows the number of instances by %s' % metric
|
print 'graph_info This graph shows the number of instances by %s' % metric
|
||||||
for state in states:
|
for state in states:
|
||||||
print '%s.label %s' % (state, get_name(state))
|
print '%s.label %s' % (state, get_name(metric, state))
|
||||||
print '%s.draw LINE2' % state
|
print '%s.draw LINE2' % state
|
||||||
print '%s.info %s IPs' % (state, state)
|
print '%s.info %s IPs' % (state, state)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue