| Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 1 | ======== | 
|  | 2 | Collectd | 
|  | 3 | ======== | 
|  | 4 |  | 
| Ales Komarek | 28f26b3 | 2015-12-03 22:23:28 +0100 | [diff] [blame^] | 5 | Collectd 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 Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 6 |  | 
|  | 7 | Sample pillars | 
|  | 8 | ============== | 
|  | 9 |  | 
| Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 10 | Send data over TCP to Graphite Carbon | 
| Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 11 |  | 
|  | 12 | .. code-block:: yaml | 
|  | 13 |  | 
|  | 14 | collectd: | 
|  | 15 | client: | 
|  | 16 | enabled: true | 
|  | 17 | read_interval: 60 | 
| Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 18 | backend: | 
|  | 19 | carbon: | 
|  | 20 | host: carbon1.comain.com | 
|  | 21 | port: 2003 | 
| Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 22 |  | 
|  | 23 | Send data over AMQP | 
|  | 24 |  | 
|  | 25 | .. code-block:: yaml | 
|  | 26 |  | 
|  | 27 | collectd: | 
|  | 28 | client: | 
|  | 29 | enabled: true | 
|  | 30 | read_interval: 60 | 
| Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 31 | backend: | 
|  | 32 | amqp: | 
|  | 33 | host: broker1.comain.com | 
|  | 34 | port: 5672 | 
|  | 35 | user: monitor | 
|  | 36 | password: amqp-pwd | 
|  | 37 | virtual_host: '/monitor' | 
| Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 38 |  | 
| Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 39 | Monitor network devices, defined in 'external' dictionary | 
| Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 40 |  | 
|  | 41 | .. code-block:: yaml | 
|  | 42 |  | 
| Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 43 | 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 Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 59 | collectd: | 
|  | 60 | client: | 
|  | 61 | enabled: true | 
| Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 62 | ... | 
| Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 63 |  | 
|  | 64 | Read more | 
|  | 65 | ========= | 
|  | 66 |  | 
|  | 67 | * http://collectd.org/documentation.shtml | 
|  | 68 | * http://www.canopsis.org/2013/02/collectd-graphite/ | 
|  | 69 | * http://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_libvirt | 
|  | 70 | * http://libvirt.org/uri.html#URI_qemu |