1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

mongodb_docs configurable graph_category

This commit is contained in:
Jeremías 2021-03-16 14:33:49 -03:00 committed by Lars Kruse
parent dca094317a
commit f5900290d6

View file

@ -69,8 +69,8 @@ def doConfig():
graph_title MongoDB documents
graph_args --base 1000 -l 0
graph_vlabel documents
graph_category db
""")
graph_category %s
""" % os.getenv('graph_category', 'db'))
for k in getServerStatus()["metrics"]["document"]:
print(k + ".label " + k)