mongo_ops configurable graph_category

This commit is contained in:
Jeremías 2021-03-16 14:38:33 -03:00 committed by Lars Kruse
parent 4168c1647b
commit a9313615c8
1 changed files with 2 additions and 2 deletions

View File

@ -68,9 +68,9 @@ def doConfig():
graph_title MongoDB ops
graph_args --base 1000 -l 0
graph_vlabel ops / ${graph_period}
graph_category db
graph_category %s
graph_total total
""")
""" % os.getenv('graph_category', 'db'))
for k in getServerStatus()["opcounters"]:
print(k + ".label " + k)