mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Plugin docker_: fix indentation
This commit is contained in:
parent
be4ad90df3
commit
98aeca5f7b
1 changed files with 23 additions and 23 deletions
|
@ -451,29 +451,29 @@ def cpu(client, mode):
|
||||||
|
|
||||||
|
|
||||||
def network(client, mode):
|
def network(client, mode):
|
||||||
if mode == "config":
|
if mode == "config":
|
||||||
print("graph_title Docker containers network usage")
|
print("graph_title Docker containers network usage")
|
||||||
print("graph_args --base 1024 -l 0")
|
print("graph_args --base 1024 -l 0")
|
||||||
print("graph_vlabel bits in (-) / out (+) per ${graph_period}")
|
print("graph_vlabel bits in (-) / out (+) per ${graph_period}")
|
||||||
print("graph_category virtualization")
|
print("graph_category virtualization")
|
||||||
print("graph_info This graph shows docker container network usage.")
|
print("graph_info This graph shows docker container network usage.")
|
||||||
print("graph_total Total network usage")
|
print("graph_total Total network usage")
|
||||||
for container in client.all_containers:
|
for container in client.all_containers:
|
||||||
fieldname = clean_fieldname(container.name)
|
fieldname = clean_fieldname(container.name)
|
||||||
print("{}_down.label {}_received".format(fieldname, container.name))
|
print("{}_down.label {}_received".format(fieldname, container.name))
|
||||||
print("{}_down.type DERIVE".format(fieldname))
|
print("{}_down.type DERIVE".format(fieldname))
|
||||||
print("{}_down.min 0".format(fieldname))
|
print("{}_down.min 0".format(fieldname))
|
||||||
print("{}_down.graph no".format(fieldname))
|
print("{}_down.graph no".format(fieldname))
|
||||||
print("{}_down.cdef {}_down,8,*".format(fieldname, fieldname))
|
print("{}_down.cdef {}_down,8,*".format(fieldname, fieldname))
|
||||||
print("{}_up.label {}".format(fieldname, container.name))
|
print("{}_up.label {}".format(fieldname, container.name))
|
||||||
print("{}_up.draw LINESTACK1".format(fieldname))
|
print("{}_up.draw LINESTACK1".format(fieldname))
|
||||||
print("{}_up.type DERIVE".format(fieldname))
|
print("{}_up.type DERIVE".format(fieldname))
|
||||||
print("{}_up.min 0".format(fieldname))
|
print("{}_up.min 0".format(fieldname))
|
||||||
print("{}_up.negative {}_down".format(fieldname, fieldname))
|
print("{}_up.negative {}_down".format(fieldname, fieldname))
|
||||||
print("{}_up.cdef {}_up,8,*".format(fieldname, fieldname))
|
print("{}_up.cdef {}_up,8,*".format(fieldname, fieldname))
|
||||||
print("{}_up.info {}".format(fieldname, container_attributes(container)))
|
print("{}_up.info {}".format(fieldname, container_attributes(container)))
|
||||||
else:
|
else:
|
||||||
print_containers_network(client)
|
print_containers_network(client)
|
||||||
|
|
||||||
|
|
||||||
def memory(client, mode):
|
def memory(client, mode):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue