blob: 96b4f9780487098dfa69a8bedc50e0781f998722 [file] [log] [blame]
Filip Pytloun6d4b7a22015-10-06 16:28:31 +02001========
2Collectd
3========
4
Ales Komarek28f26b32015-12-03 22:23:28 +01005Collectd is a daemon which collects system performance statistics periodically and provides mechanisms to store the values in a variety of ways, for example in RRD files.
Filip Pytloun6d4b7a22015-10-06 16:28:31 +02006
7Sample pillars
8==============
9
Ales Komarek60fe7792015-11-19 09:45:42 +010010Send data over TCP to Graphite Carbon
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020011
12.. code-block:: yaml
13
14 collectd:
15 client:
16 enabled: true
17 read_interval: 60
Ales Komarek60fe7792015-11-19 09:45:42 +010018 backend:
19 carbon:
20 host: carbon1.comain.com
21 port: 2003
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020022
23Send data over AMQP
24
25.. code-block:: yaml
26
27 collectd:
28 client:
29 enabled: true
30 read_interval: 60
Ales Komarek60fe7792015-11-19 09:45:42 +010031 backend:
32 amqp:
33 host: broker1.comain.com
34 port: 5672
35 user: monitor
36 password: amqp-pwd
37 virtual_host: '/monitor'
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020038
Ales Komarek60fe7792015-11-19 09:45:42 +010039Monitor network devices, defined in 'external' dictionary
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020040
41.. code-block:: yaml
42
Ales Komarek60fe7792015-11-19 09:45:42 +010043 external:
44 network_device:
45 MX80-01:
46 community: test
47 model: Juniper_MX80
48 management:
49 address: 10.0.0.254
50 port: fxp01
51 engine: snmp/ssh
52 interface:
53 xe-0/0/0:
54 description: MEMBER-OF-LACP-TO-QFX
55 type: 802.3ad
56 subinterface:
57 xe-0/0/0.0:
58 description: MEMBER-OF-LACP-TO-QFX
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020059 collectd:
60 client:
61 enabled: true
Ales Komarek60fe7792015-11-19 09:45:42 +010062 ...
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020063
Ales Komarek5831a2d2016-06-06 11:54:06 +020064Collecting the SNMP metrics
65
66.. code-block:: yaml
67
68 collectd:
69 client:
70 data:
71 connected_devices:
72 type: devices
73 values:
74 - IF-MIB::ifNumber.0
75 host:
76 ubiquity:
77 address: 10.0.0.1
78 community: public
79 version: 2
80 data:
81 - connected_devices
82
83
Ales Komarek4550e8c2016-09-28 22:20:28 +020084Collecting the cURL response times and codes
85
86.. code-block:: yaml
87
88 collectd:
89 client:
90 check:
91 curl:
92 service1:
93 url: "https://service.domain.com:443/"
94 service2:
95 url: "https://service.domain.com:443/"
96
97
98Collecting the ping response times
99
100.. code-block:: yaml
101
102 collectd:
103 client:
104 check:
105 ping:
106 host_label1:
107 host: "172.10.31.14"
108 host_label2:
109 host: "172.10.31.12"
110
Filip Pytloun6d4b7a22015-10-06 16:28:31 +0200111Read more
112=========
113
114* http://collectd.org/documentation.shtml
115* http://www.canopsis.org/2013/02/collectd-graphite/
116* http://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_libvirt
117* http://libvirt.org/uri.html#URI_qemu