src/graph_config.[ch]: Implement the "CacheFile" config option.
[collection4.git] / share / collection.conf
1 CacheFile "/tmp/collection4.json"
2
3 <DataProvider "rrdtool">
4   DataDir "/var/lib/collectd/rrd"
5 </DataProvider>
6
7 <Graph>
8   Host "/any/"
9   Plugin "cpu"
10   PluginInstance "/any/"
11   Type "cpu"
12   TypeInstance "/all/"
13
14   Title "CPU utilization"
15   VerticalLabel "Jiffies"
16
17   <DEF>
18     TypeInstance "idle"
19     DSName "value"
20     Legend "Idle   "
21     Color "e8e8e8"
22     Area true
23     Stack true
24     Format "%6.2lf"
25   </DEF>
26   <DEF>
27     TypeInstance "nice"
28     DSName "value"
29     Legend "Nice   "
30     Color "00e000"
31     Area true
32     Stack true
33     Format "%6.2lf"
34   </DEF>
35   <DEF>
36     TypeInstance "user"
37     DSName "value"
38     Legend "User   "
39     Color "0000ff"
40     Area true
41     Stack true
42     Format "%6.2lf"
43   </DEF>
44   <DEF>
45     TypeInstance "wait"
46     DSName "value"
47     Legend "Wait-IO"
48     Color "ffb000"
49     Area true
50     Stack true
51     Format "%6.2lf"
52   </DEF>
53   <DEF>
54     TypeInstance "system"
55     DSName "value"
56     Legend "System "
57     Color "ff0000"
58     Area true
59     Stack true
60     Format "%6.2lf"
61   </DEF>
62   <DEF>
63     TypeInstance "softirq"
64     DSName "value"
65     Legend "SoftIRQ"
66     Color "ff00ff"
67     Area true
68     Stack true
69     Format "%6.2lf"
70   </DEF>
71   <DEF>
72     TypeInstance "interrupt"
73     DSName "value"
74     Legend "IRQ    "
75     Color "a000a0"
76     Area true
77     Stack true
78     Format "%6.2lf"
79   </DEF>
80   <DEF>
81     TypeInstance "steal"
82     DSName "value"
83     Legend "Steal  "
84     Color "000000"
85     Area true
86     Stack true
87     Format "%6.2lf"
88   </DEF>
89 </Graph>
90
91 <Graph>
92   Host "/any/"
93   Plugin "df"
94   PluginInstance "/any/"
95   Type "df_complex"
96   TypeInstance "/all/"
97
98   Title "Diskspace"
99   VerticalLabel "Bytes"
100   ShowZero false
101
102   <DEF>
103     TypeInstance "reserved"
104     DSName "value"
105     Legend "Reserved"
106     Color "ffb000"
107     Area true
108     Stack true
109     Format "%5.1lf%s"
110   </DEF>
111   <DEF>
112     TypeInstance "free"
113     DSName "value"
114     Legend "Free    "
115     Color "00bf00"
116     Area true
117     Stack true
118     Format "%5.1lf%s"
119   </DEF>
120   <DEF>
121     TypeInstance "used"
122     DSName "value"
123     Legend "Used    "
124     Color "ff0000"
125     Area true
126     Stack true
127     Format "%5.1lf%s"
128   </DEF>
129 </Graph>
130
131 <Graph>
132   Host "/any/"
133   Plugin "netapp"
134   PluginInstance "/any/"
135   Type "df_complex"
136   TypeInstance "/all/"
137
138   Title "Diskspace (NetApp)"
139   VerticalLabel "Bytes"
140   ShowZero true
141
142   <DEF>
143     TypeInstance "sis_saved"
144     DSName "value"
145     Legend "SIS saved         "
146     Color "00e0e0"
147     Area true
148     Stack true
149     Format "%5.1lf%s"
150   </DEF>
151   <DEF>
152     TypeInstance "free"
153     DSName "value"
154     Legend "Free              "
155     Color "00ff00"
156     Area true
157     Stack true
158     Format "%5.1lf%s"
159   </DEF>
160   <DEF>
161     TypeInstance "used"
162     DSName "value"
163     Legend "Used              "
164     Color "ff0000"
165     Area true
166     Stack true
167     Format "%5.1lf%s"
168   </DEF>
169   <DEF>
170     TypeInstance "snap_normal_used"
171     DSName "value"
172     Legend "Snap used (normal)"
173     Color "c10640"
174     Area true
175     Stack true
176     Format "%5.1lf%s"
177   </DEF>
178   <DEF>
179     TypeInstance "snap_reserved"
180     DSName "value"
181     Legend "Snap reserved     "
182     Color "f15aef"
183     Area true
184     Stack true
185     Format "%5.1lf%s"
186   </DEF>
187   <DEF>
188     TypeInstance "snap_reserve_used"
189     DSName "value"
190     Legend "Snap used (resv)  "
191     Color "820c81"
192     Area true
193     Stack true
194     Format "%5.1lf%s"
195   </DEF>
196 </Graph>
197
198 <Graph>
199   Host "/any/"
200   Plugin "df"
201   PluginInstance "/any/"
202   Type "df_inodes"
203   TypeInstance "/all/"
204
205   Title "Diskspace (Inodes)"
206   VerticalLabel "Inodes"
207   ShowZero true
208
209   <DEF>
210     TypeInstance "reserved"
211     DSName "value"
212     Legend "Reserved"
213     Color "ffb000"
214     Area true
215     Stack true
216     Format "%5.1lf%s"
217   </DEF>
218   <DEF>
219     TypeInstance "free"
220     DSName "value"
221     Legend "Free    "
222     Color "00bf00"
223     Area true
224     Stack true
225     Format "%5.1lf%s"
226   </DEF>
227   <DEF>
228     TypeInstance "used"
229     DSName "value"
230     Legend "Used    "
231     Color "ff0000"
232     Area true
233     Stack true
234     Format "%5.1lf%s"
235   </DEF>
236 </Graph>
237
238 <Graph>
239   Host "/any/"
240   Plugin "df"
241   PluginInstance ""
242   Type "df"
243   TypeInstance "/any/"
244
245   Title "Diskspace (legacy)"
246   VerticalLabel "Bytes"
247   ShowZero true
248
249   <DEF>
250     DSName "free"
251     Legend "Free"
252     Color "00bf00"
253     Area true
254     Stack true
255     Format "%5.1lf%s"
256   </DEF>
257   <DEF>
258     DSName "used"
259     Legend "Used"
260     Color "ff0000"
261     Area true
262     Stack true
263     Format "%5.1lf%s"
264   </DEF>
265 </Graph>
266
267 <Graph>
268   Host "/any/"
269   Plugin "/any/"
270   PluginInstance "/any/"
271   Type "disk_merged"
272   TypeInstance ""
273
274   Title "Disk merged operations"
275
276   <DEF>
277     DSName "read"
278     Legend "Read "
279     Color "0000ff"
280   </DEF>
281   <DEF>
282     DSName "write"
283     Legend "Write"
284     Color "00bf00"
285   </DEF>
286 </Graph>
287
288 <Graph>
289   Host "/any/"
290   Plugin "/any/"
291   PluginInstance "/any/"
292   Type "disk_octets"
293   TypeInstance ""
294
295   Title "Disk octets"
296
297   <DEF>
298     DSName "read"
299     Legend "Read "
300     Color "0000ff"
301     Format "%5.1lf%s"
302   </DEF>
303   <DEF>
304     DSName "write"
305     Legend "Write"
306     Color "00bf00"
307     Format "%5.1lf%s"
308   </DEF>
309 </Graph>
310
311 <Graph>
312   Host "/any/"
313   Plugin "/any/"
314   PluginInstance "/any/"
315   Type "disk_ops"
316   TypeInstance ""
317
318   Title "Disk operations"
319
320   <DEF>
321     DSName "read"
322     Legend "Read "
323     Color "0000ff"
324   </DEF>
325   <DEF>
326     DSName "write"
327     Legend "Write"
328     Color "00bf00"
329   </DEF>
330 </Graph>
331
332 <Graph>
333   Host "/any/"
334   Plugin "/any/"
335   PluginInstance "/any/"
336   Type "disk_time"
337   TypeInstance ""
338
339   Title "Disk time per op"
340
341   <DEF>
342     DSName "read"
343     Legend "Read "
344     Color "0000ff"
345   </DEF>
346   <DEF>
347     DSName "write"
348     Legend "Write"
349     Color "00bf00"
350   </DEF>
351 </Graph>
352
353 <Graph>
354   Host "/any/"
355   Plugin "processes"
356   PluginInstance ""
357   Type "fork_rate"
358   TypeInstance ""
359
360   Title "Fork rate"
361   VerticalLabel "Forks/s"
362
363   <DEF>
364     DSName "value"
365     Legend "Fork rate"
366     Color "0000ff"
367   </DEF>
368 </Graph>
369
370 <Graph>
371   Host "/any/"
372   Plugin "interface"
373   PluginInstance "/any/"
374   Type "if_errors"
375   TypeInstance "/any/"
376
377   Title "Interface errors"
378   VerticalLabel "Errors/s"
379
380   <DEF>
381     DSName "rx"
382     Legend "RX"
383     Color "0000ff"
384     Format "%5.1lf"
385   </DEF>
386   <DEF>
387     DSName "tx"
388     Legend "TX"
389     Color "00bf00"
390     Format "%5.1lf"
391   </DEF>
392 </Graph>
393
394 <Graph>
395   Host "/any/"
396   Plugin "/any/"
397   PluginInstance "/any/"
398   Type "if_octets"
399   TypeInstance "/any/"
400
401   Title "Interface octets"
402   VerticalLabel "Bytes/s"
403
404   <DEF>
405     DSName "rx"
406     Legend "RX"
407     Color "0000ff"
408     Format "%5.1lf%s"
409   </DEF>
410   <DEF>
411     DSName "tx"
412     Legend "TX"
413     Color "00bf00"
414     Format "%5.1lf%s"
415   </DEF>
416 </Graph>
417
418 <Graph>
419   Host "/any/"
420   Plugin "interface"
421   PluginInstance "/any/"
422   Type "if_packets"
423   TypeInstance "/any/"
424
425   Title "Interface packets"
426   VerticalLabel "Packets/s"
427
428   <DEF>
429     DSName "rx"
430     Legend "RX"
431     Color "0000ff"
432   </DEF>
433   <DEF>
434     DSName "tx"
435     Legend "TX"
436     Color "00bf00"
437   </DEF>
438 </Graph>
439
440 <Graph>
441   Host "/any/"
442   Plugin "GenericJMX"
443   PluginInstance "/any/"
444   Type "jmx_memory"
445   TypeInstance "/all/"
446
447   Title "JMX memory"
448
449   <DEF>
450     TypeInstance "max"
451     DSName "value"
452     Legend "Max      "
453     Color "00e000"
454     Format "%5.1lf%s"
455   </DEF>
456   <DEF>
457     TypeInstance "committed"
458     DSName "value"
459     Legend "Committed"
460     Color "0000ff"
461     Format "%5.1lf%s"
462   </DEF>
463   <DEF>
464     TypeInstance "init"
465     DSName "value"
466     Legend "Init     "
467     Color "ffb000"
468     Format "%5.1lf%s"
469   </DEF>
470   <DEF>
471     TypeInstance "used"
472     DSName "value"
473     Legend "Used     "
474     Color "ff0000"
475     Format "%5.1lf%s"
476   </DEF>
477 </Graph>
478
479 <Graph>
480   Host "/any/"
481   Plugin "load"
482   PluginInstance ""
483   Type "load"
484   TypeInstance ""
485
486   Title "System load"
487
488   <DEF>
489     DSName "longterm"
490     Legend "15m"
491     Color "ff0000"
492   </DEF>
493   <DEF>
494     DSName "midterm"
495     Legend " 5m"
496     Color "0000ff"
497   </DEF>
498   <DEF>
499     DSName "shortterm"
500     Legend " 1m "
501     Color "00e000"
502   </DEF>
503 </Graph>
504
505 <Graph>
506   Host "/any/"
507   Plugin "memory"
508   PluginInstance ""
509   Type "memory"
510   TypeInstance "/all/"
511
512   Title "Memory utilization"
513   VerticalLabel "Bytes"
514   ShowZero true
515
516   <DEF>
517     TypeInstance "free"
518     DSName "value"
519     Legend "Free    "
520     Color "00e000"
521     Area true
522     Stack true
523     Format "%5.1lf%s"
524   </DEF>
525   <DEF>
526     TypeInstance "cached"
527     DSName "value"
528     Legend "Cached  "
529     Color "0000ff"
530     Area true
531     Stack true
532     Format "%5.1lf%s"
533   </DEF>
534   <DEF>
535     TypeInstance "buffered"
536     DSName "value"
537     Legend "Buffered"
538     Color "ffb000"
539     Area true
540     Stack true
541     Format "%5.1lf%s"
542   </DEF>
543   <DEF>
544     TypeInstance "locked"
545     DSName "value"
546     Legend "Locked  "
547     Color "ff00ff"
548     Area true
549     Stack true
550     Format "%5.1lf%s"
551   </DEF>
552   <DEF>
553     TypeInstance "used"
554     DSName "value"
555     Legend "Used    "
556     Color "ff0000"
557     Area true
558     Stack true
559     Format "%5.1lf%s"
560   </DEF>
561 </Graph>
562
563 <Graph>
564   Host "/any/"
565   Plugin "mysql"
566   PluginInstance ""
567   Type "mysql_commands"
568   TypeInstance "/all/"
569
570   Title "MySQL commands"
571   VerticalLabel "Invocations"
572
573   <DEF>
574     DSName "value"
575     #Legend "Paging  "
576     #Color "ffb000"
577   </DEF>
578 </Graph>
579
580 <Graph>
581   Host "/any/"
582   Plugin "ping"
583   PluginInstance ""
584   Type "ping"
585   TypeInstance "/any/"
586
587   Title "Ping (Latency)"
588   VerticalLabel "Seconds"
589
590   <DEF>
591     DSName "value"
592     Legend "Ping"
593     Color "0000ff"
594   </DEF>
595 </Graph>
596
597 <Graph>
598   Host "/any/"
599   Plugin "ping"
600   PluginInstance ""
601   Type "ping_droprate"
602   TypeInstance "/any/"
603
604   Title "Drop rate"
605   VerticalLabel "Rate"
606
607   <DEF>
608     DSName "value"
609     Legend "Rate"
610     Color "0000ff"
611   </DEF>
612 </Graph>
613
614 <Graph>
615   Host "/any/"
616   Plugin "ping"
617   PluginInstance ""
618   Type "ping_stddev"
619   TypeInstance "/any/"
620
621   Title "Standard deviation (ping)"
622   VerticalLabel "Std. deviation"
623
624   <DEF>
625     DSName "value"
626     Legend "Std. dev."
627     Color "0000ff"
628   </DEF>
629 </Graph>
630
631 <Graph>
632   Host "/any/"
633   Plugin "processes"
634   PluginInstance ""
635   Type "ps_state"
636   TypeInstance "/all/"
637
638   Title "Processes"
639   VerticalLabel "Processes"
640
641   <DEF>
642     TypeInstance "paging"
643     DSName "value"
644     Legend "Paging  "
645     Color "ffb000"
646   </DEF>
647   <DEF>
648     TypeInstance "blocked"
649     DSName "value"
650     Legend "Blocked "
651     Color "ff00ff"
652   </DEF>
653   <DEF>
654     TypeInstance "zombies"
655     DSName "value"
656     Legend "Zombies "
657     Color "ff0000"
658   </DEF>
659   <DEF>
660     TypeInstance "stopped"
661     DSName "value"
662     Legend "Stopped "
663     Color "a000a0"
664   </DEF>
665   <DEF>
666     TypeInstance "running"
667     DSName "value"
668     Legend "Running "
669     Color "00e000"
670   </DEF>
671   <DEF>
672     TypeInstance "sleeping"
673     DSName "value"
674     Legend "Sleeping"
675     Color "0000ff"
676   </DEF>
677 </Graph>
678
679 <Graph>
680   Host "/any/"
681   Plugin "sensors"
682   PluginInstance "/any/"
683   Type "temperature"
684   TypeInstance "/any/"
685
686   Title "Temperature"
687   VerticalLabel "deg Celsius"
688
689   <DEF>
690     DSName "value"
691     Legend "Temperature"
692     Color "0000ff"
693   </DEF>
694 </Graph>
695
696 <Graph>
697   Host "/any/"
698   Plugin "swap"
699   PluginInstance ""
700   Type "swap"
701   TypeInstance "/all/"
702
703   Title "Swap utilization"
704   VerticalLabel "Bytes"
705
706   <DEF>
707     TypeInstance "free"
708     DSName "value"
709     Legend "Free  "
710     Color "00e000"
711     Area true
712     Stack true
713     Format "%5.1lf%s"
714   </DEF>
715   <DEF>
716     TypeInstance "cached"
717     DSName "value"
718     Legend "Cached"
719     Color "ffb000"
720     Area true
721     Stack true
722     Format "%5.1lf%s"
723   </DEF>
724   <DEF>
725     TypeInstance "used"
726     DSName "value"
727     Legend "Used  "
728     Color "ff0000"
729     Area true
730     Stack true
731     Format "%5.1lf%s"
732   </DEF>
733 </Graph>
734
735 <Graph>
736   Host "/any/"
737   Plugin "swap"
738   PluginInstance ""
739   Type "swap_io"
740   TypeInstance "/all/"
741
742   Title "Swap I/O"
743   VerticalLabel "Pages/s"
744
745   <DEF>
746     TypeInstance "in"
747     DSName "value"
748     Legend "In "
749     Color "0000ff"
750     Format "%5.1lf"
751   </DEF>
752   <DEF>
753     TypeInstance "out"
754     DSName "value"
755     Legend "Out"
756     Color "00bf00"
757     Format "%5.1lf"
758   </DEF>
759 </Graph>
760
761 <Graph>
762   Host "/any/"
763   Plugin "users"
764   PluginInstance ""
765   Type "users"
766   TypeInstance ""
767
768   Title "Users"
769   VerticalLabel "Users"
770
771   <DEF>
772     DSName "users"
773     Legend "Users"
774     Color "0000ff"
775   </DEF>
776 </Graph>
777
778 <Graph>
779   Host "/any/"
780   Plugin "terminal_services"
781   PluginInstance ""
782   Type "users"
783   TypeInstance "/all/"
784
785   Title "Users (Terminal Services)"
786   VerticalLabel "Users"
787
788   <DEF>
789     TypeInstance "active"
790     DSName "users"
791     Legend "Active  "
792     Color "ff0000"
793   </DEF>
794   <DEF>
795     TypeInstance "inactive"
796     DSName "users"
797     Legend "Inactive"
798     Color "0000ff"
799   </DEF>
800 </Graph>
801
802 <Graph>
803   Host "/any/"
804   Plugin "/any/"
805   PluginInstance "/any/"
806   Type "current"
807   TypeInstance "/any/"
808
809   Title "Current"
810   VerticalLabel "Amperes"
811
812   <DEF>
813     DSName "value"
814     Legend "Current"
815     Color "0000ff"
816   </DEF>
817 </Graph>
818
819 <Graph>
820   Host "/any/"
821   Plugin "/any/"
822   PluginInstance "/any/"
823   Type "power"
824   TypeInstance "/any/"
825
826   Title "Power"
827   VerticalLabel "Watts"
828
829   <DEF>
830     DSName "value"
831     Legend "Power"
832     Color "0000ff"
833   </DEF>
834 </Graph>
835
836 <Graph>
837   Host "/any/"
838   Plugin "/any/"
839   PluginInstance "/any/"
840   Type "temperature"
841   TypeInstance "/any/"
842
843   Title "Temperature"
844   VerticalLabel "Deg Celsius"
845
846   <DEF>
847     DSName "value"
848     Legend "Temperature"
849     Color "0000ff"
850   </DEF>
851 </Graph>
852
853 <Graph>
854   Host "/any/"
855   Plugin "/any/"
856   PluginInstance "/any/"
857   Type "voltage"
858   TypeInstance "/any/"
859
860   Title "Voltage"
861   VerticalLabel "Volts"
862
863   <DEF>
864     DSName "value"
865     Legend "Voltage"
866     Color "0000ff"
867   </DEF>
868 </Graph>
869
870 <Graph>
871   Host "/any/"
872   Plugin "/any/"
873   PluginInstance "/any/"
874   Type "work"
875   TypeInstance "/any/"
876
877   Title "Work"
878   #VerticalLabel ""
879
880   <DEF>
881     DSName "value"
882     Legend "Work"
883     Color "0000ff"
884   </DEF>
885 </Graph>
886