share/collection.js: Keep visibility when redrawing graphs.
[collection4.git] / share / collection.conf
index 9b9203c..b0f4d43 100644 (file)
@@ -1,3 +1,9 @@
+CacheFile "/tmp/collection4.json"
+
+<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 "ping"
+  PluginInstance ""
+  Type "ping"
+  TypeInstance "/any/"
+
+  Title "Ping (Latency)"
+  VerticalLabel "Seconds"
+
+  <DEF>
+    # v5: DSName "value"
+    DSName "ping"
+    Legend "Ping"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "ping"
+  PluginInstance ""
+  Type "ping_droprate"
+  TypeInstance "/any/"
+
+  Title "Drop rate"
+  VerticalLabel "Rate"
+
+  <DEF>
+    DSName "value"
+    Legend "Rate"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "ping"
+  PluginInstance ""
+  Type "ping_stddev"
+  TypeInstance "/any/"
+
+  Title "Standard deviation (ping)"
+  VerticalLabel "Std. deviation"
+
+  <DEF>
+    DSName "value"
+    Legend "Std. dev."
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
   Plugin "processes"
   PluginInstance ""
   Type "ps_state"
 
 <Graph>
   Host "/any/"
+  Plugin "tcpconns"
+  PluginInstance "/any/"
+  Type "tcp_connections"
+  TypeInstance "/all/"
+
+  Title "TCP connections"
+  VerticalLabel "Connections"
+
+  <DEF>
+    TypeInstance "LISTEN"
+    DSName "value"
+    Legend "LISTEN     "
+    Color "ff0000"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "CLOSING"
+    DSName "value"
+    Legend "CLOSING    "
+    Color "000000"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "LAST_ACK"
+    DSName "value"
+    Legend "LAST_ACK   "
+    Color "000080"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "CLOSE_WAIT"
+    DSName "value"
+    Legend "CLOSE_WAIT "
+    Color "0000a0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "CLOSE"
+    DSName "value"
+    Legend "CLOSE      "
+    Color "0000f0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "TIME_WAIT"
+    DSName "value"
+    Legend "TIME_WAIT  "
+    Color "ffb000"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "FIN_WAIT2"
+    DSName "value"
+    Legend "FIN_WAIT2  "
+    Color "f000a0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "FIN_WAIT1"
+    DSName "value"
+    Legend "FIN_WAIT1  "
+    Color "f000f0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "SYN_RECV"
+    DSName "value"
+    Legend "SYN_RECV   "
+    Color "00e0a0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "SYN_SENT"
+    DSName "value"
+    Legend "SYN_SENT   "
+    Color "00e0ff"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "ESTABLISHED"
+    DSName "value"
+    Legend "ESTABLISHED"
+    Color "00e000"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "CLOSED"
+    DSName "value"
+    Legend "CLOSED     "
+    Color "0000f0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
   Plugin "users"
   PluginInstance ""
   Type "users"