blob: bfc52995c7046fb7d750a3d5a78134cfd65e53d5 [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
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020084Read more
85=========
86
87* http://collectd.org/documentation.shtml
88* http://www.canopsis.org/2013/02/collectd-graphite/
89* http://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_libvirt
90* http://libvirt.org/uri.html#URI_qemu