src/graph_instance.[ch]: Implement "inst_data_to_json".
[collection4.git] / share / collection.conf
index 462600c..74e0572 100644 (file)
@@ -1,3 +1,7 @@
+<DataProvider "rrdtool">
+  DataDir "/var/lib/collectd/rrd"
+</DataProvider>
+
 <Graph>
   Host "/any/"
   Plugin "cpu"
   ShowZero true
 
   <DEF>
-    DSName "used"
-    Legend "Used"
-    Color "ff0000"
+    DSName "free"
+    Legend "Free"
+    Color "00bf00"
     Area true
     Stack true
     Format "%5.1lf%s"
   </DEF>
   <DEF>
-    DSName "free"
-    Legend "Free"
-    Color "00bf00"
+    DSName "used"
+    Legend "Used"
+    Color "ff0000"
     Area true
     Stack true
     Format "%5.1lf%s"
 
 <Graph>
   Host "/any/"
+  Plugin "mysql"
+  PluginInstance ""
+  Type "mysql_commands"
+  TypeInstance "/all/"
+
+  Title "MySQL commands"
+  VerticalLabel "Invocations"
+
+  <DEF>
+    DSName "value"
+    #Legend "Paging  "
+    #Color "ffb000"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
   Plugin "processes"
   PluginInstance ""
   Type "ps_state"