src/graph_instance.[ch]: Implement "inst_data_to_json".
[collection4.git] / share / collection.conf
index 5ae61c2..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 "disk"
+  Plugin "/any/"
   PluginInstance "/any/"
   Type "disk_merged"
   TypeInstance ""
 
 <Graph>
   Host "/any/"
-  Plugin "disk"
+  Plugin "/any/"
   PluginInstance "/any/"
   Type "disk_octets"
   TypeInstance ""
 
 <Graph>
   Host "/any/"
-  Plugin "disk"
+  Plugin "/any/"
   PluginInstance "/any/"
   Type "disk_ops"
   TypeInstance ""
 
 <Graph>
   Host "/any/"
-  Plugin "disk"
+  Plugin "/any/"
   PluginInstance "/any/"
   Type "disk_time"
   TypeInstance ""
 
 <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"
   Host "/any/"
   Plugin "/any/"
   PluginInstance "/any/"
+  Type "power"
+  TypeInstance "/any/"
+
+  Title "Power"
+  VerticalLabel "Watts"
+
+  <DEF>
+    DSName "value"
+    Legend "Power"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "/any/"
+  PluginInstance "/any/"
+  Type "temperature"
+  TypeInstance "/any/"
+
+  Title "Temperature"
+  VerticalLabel "Deg Celsius"
+
+  <DEF>
+    DSName "value"
+    Legend "Temperature"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "/any/"
+  PluginInstance "/any/"
   Type "voltage"
   TypeInstance "/any/"
 
     Color "0000ff"
   </DEF>
 </Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "/any/"
+  PluginInstance "/any/"
+  Type "work"
+  TypeInstance "/any/"
+
+  Title "Work"
+  #VerticalLabel ""
+
+  <DEF>
+    DSName "value"
+    Legend "Work"
+    Color "0000ff"
+  </DEF>
+</Graph>
+