erh / mongo-munin

Munin plugins for MongoDB
144 stars 59 forks source link

mongo-mem not zero-based #1

Closed mattparlane closed 14 years ago

mattparlane commented 14 years ago

Hi there...

How about this: ` diff --git a/mongo_mem b/mongo_mem index af484ba..dc0fa28 100755 --- a/mongo_mem +++ b/mongo_mem @@ -26,7 +26,7 @@ def doData(): def doConfig():

 print "graph_title MongoDB memory usage"

Cheers,

Matt

mattparlane commented 14 years ago

ugh, it's screwed up my formatting... try this:

diff --git a/mongo_mem b/mongo_mem
index af484ba..dc0fa28 100755
--- a/mongo_mem
+++ b/mongo_mem
@@ -26,7 +26,7 @@ def doData():
 def doConfig():

     print "graph_title MongoDB memory usage"
-    print "graph_args --base 1000"
+    print "graph_args --base 1000 -l 0"
     print "graph_vlabel mb ${graph_period}"
     print "graph_category MongoDB"
 
erh commented 14 years ago

makes sense. if you fork and commit i can merge - otherwise i'll just copy what you did, but you won't get credit :)

mattparlane commented 14 years ago

not too fussed about the credit... :)

erh commented 14 years ago

done