Aleš Komárek | 7caca3c | 2017-02-06 15:45:15 +0100 | [diff] [blame^] | 1 | ================ |
| 2 | Collectd formula |
| 3 | ================ |
Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 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 | 2675e84 | 2016-10-05 00:10:44 +0200 | [diff] [blame] | 10 | Data writers |
| 11 | ------------ |
| 12 | |
Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 13 | Send data over TCP to Graphite Carbon |
Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 14 | |
| 15 | .. code-block:: yaml |
| 16 | |
| 17 | collectd: |
| 18 | client: |
| 19 | enabled: true |
| 20 | read_interval: 60 |
Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 21 | backend: |
Ales Komarek | 2675e84 | 2016-10-05 00:10:44 +0200 | [diff] [blame] | 22 | carbon_service: |
| 23 | engine: carbon |
Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 24 | host: carbon1.comain.com |
| 25 | port: 2003 |
Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 26 | |
| 27 | Send data over AMQP |
| 28 | |
| 29 | .. code-block:: yaml |
| 30 | |
| 31 | collectd: |
| 32 | client: |
| 33 | enabled: true |
| 34 | read_interval: 60 |
Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 35 | backend: |
Ales Komarek | 2675e84 | 2016-10-05 00:10:44 +0200 | [diff] [blame] | 36 | amqp_broker: |
| 37 | engine: amqp |
Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 38 | host: broker1.comain.com |
| 39 | port: 5672 |
| 40 | user: monitor |
| 41 | password: amqp-pwd |
Ales Komarek | 2675e84 | 2016-10-05 00:10:44 +0200 | [diff] [blame] | 42 | virtual_host: '/monitor' |
| 43 | |
| 44 | Send data over HTTP |
| 45 | |
| 46 | .. code-block:: yaml |
| 47 | |
| 48 | collectd: |
| 49 | client: |
| 50 | enabled: true |
| 51 | read_interval: 60 |
| 52 | backend: |
| 53 | http_service: |
| 54 | engine: http |
| 55 | host: service.comain.com |
| 56 | port: 8123 |
| 57 | |
| 58 | |
| 59 | Data collectors |
| 60 | --------------- |
| 61 | |
Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 62 | Monitor network devices, defined in 'external' dictionary |
Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 63 | |
| 64 | .. code-block:: yaml |
| 65 | |
Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 66 | external: |
| 67 | network_device: |
| 68 | MX80-01: |
| 69 | community: test |
| 70 | model: Juniper_MX80 |
| 71 | management: |
| 72 | address: 10.0.0.254 |
| 73 | port: fxp01 |
| 74 | engine: snmp/ssh |
| 75 | interface: |
| 76 | xe-0/0/0: |
| 77 | description: MEMBER-OF-LACP-TO-QFX |
| 78 | type: 802.3ad |
| 79 | subinterface: |
| 80 | xe-0/0/0.0: |
| 81 | description: MEMBER-OF-LACP-TO-QFX |
Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 82 | collectd: |
| 83 | client: |
| 84 | enabled: true |
Ales Komarek | 60fe779 | 2015-11-19 09:45:42 +0100 | [diff] [blame] | 85 | ... |
Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 86 | |
Ales Komarek | 5831a2d | 2016-06-06 11:54:06 +0200 | [diff] [blame] | 87 | Collecting the SNMP metrics |
| 88 | |
| 89 | .. code-block:: yaml |
| 90 | |
| 91 | collectd: |
| 92 | client: |
| 93 | data: |
| 94 | connected_devices: |
| 95 | type: devices |
| 96 | values: |
| 97 | - IF-MIB::ifNumber.0 |
| 98 | host: |
| 99 | ubiquity: |
| 100 | address: 10.0.0.1 |
| 101 | community: public |
| 102 | version: 2 |
| 103 | data: |
| 104 | - connected_devices |
| 105 | |
Ales Komarek | 4550e8c | 2016-09-28 22:20:28 +0200 | [diff] [blame] | 106 | Collecting the cURL response times and codes |
| 107 | |
| 108 | .. code-block:: yaml |
| 109 | |
| 110 | collectd: |
| 111 | client: |
| 112 | check: |
| 113 | curl: |
| 114 | service1: |
| 115 | url: "https://service.domain.com:443/" |
| 116 | service2: |
| 117 | url: "https://service.domain.com:443/" |
| 118 | |
Ales Komarek | 4550e8c | 2016-09-28 22:20:28 +0200 | [diff] [blame] | 119 | Collecting the ping response times |
| 120 | |
| 121 | .. code-block:: yaml |
| 122 | |
| 123 | collectd: |
| 124 | client: |
| 125 | check: |
| 126 | ping: |
| 127 | host_label1: |
| 128 | host: "172.10.31.14" |
| 129 | host_label2: |
| 130 | host: "172.10.31.12" |
| 131 | |
Aleš Komárek | 7caca3c | 2017-02-06 15:45:15 +0100 | [diff] [blame^] | 132 | External links |
| 133 | ============== |
Filip Pytloun | 6d4b7a2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 134 | |
| 135 | * http://collectd.org/documentation.shtml |
| 136 | * http://www.canopsis.org/2013/02/collectd-graphite/ |
| 137 | * http://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_libvirt |
| 138 | * http://libvirt.org/uri.html#URI_qemu |
Filip Pytloun | 1b10af4 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 139 | |
| 140 | Documentation and Bugs |
| 141 | ====================== |
| 142 | |
| 143 | To learn how to install and update salt-formulas, consult the documentation |
| 144 | available online at: |
| 145 | |
| 146 | http://salt-formulas.readthedocs.io/ |
| 147 | |
| 148 | In the unfortunate event that bugs are discovered, they should be reported to |
| 149 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 150 | formula: |
| 151 | |
| 152 | https://github.com/salt-formulas/salt-formula-collectd/issues |
| 153 | |
| 154 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 155 | use Launchpad salt-formulas project: |
| 156 | |
| 157 | https://launchpad.net/salt-formulas |
| 158 | |
| 159 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 160 | |
| 161 | https://launchpad.net/~salt-formulas-users |
| 162 | |
| 163 | Developers wishing to work on the salt-formulas projects should always base |
| 164 | their work on master branch and submit pull request against specific formula. |
| 165 | |
| 166 | https://github.com/salt-formulas/salt-formula-collectd |
| 167 | |
| 168 | Any questions or feedback is always welcome so feel free to join our IRC |
| 169 | channel: |
| 170 | |
| 171 | #salt-formulas @ irc.freenode.net |