collectd-formula
1. General notes
See the full SaltStack Formulas installation and usage instructions.
If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.
If you want to use this formula, please pay attention to the FORMULA
file and/or git tag
, which contains the currently released version.
This formula is versioned according to Semantic
Versioning.
See Formula Versioning Section for more details.
2. Contributing to this repo
Commit message formatting is significant!!
Please see How to contribute for more details.
4. collectd
Meta-state (This is a state that includes other states).
Installs the collectd package, and starts the associated collectd service.
4.1. collectd.service
Metastate used to include service into respective plugin states,
included in collectd
state.
4.2. collectd.apache
Enables and configures the [apache](https://collectd.org/wiki/index.php/Plugin:Apache) plugin. All common parameters are supported, so pass something like :
apache: instances: - name: 'human-readable-name' url: 'http://localhost/server-status?auto' user: 'user' pass: 'your-password'
Only name
and url
are required.
4.4. collectd.dbi
Enables and configures the dbi plugin. It’s used for quering databases
with libdbi. Refer to
collectd.conf(5)
manpage for details and pillar.example
to see how values should be
populated.
Beware this plugin may need additional packages installed on your system to run properly.
4.8. collectd.elasticsearch
Enables and configures the elasticsearch plugin
4.9. collectd.ethstat
Enables and configures the ethstat plugin (please note there is a possible bug in the debian package).
4.11. collectd.java
Enables and configures the java plugin. If enabled it will also collect tomcat catalina metrics.
Requires the installation of JDK.
Pillar values used under collectd.plugins.java, an example :
collectd: plugins: java: host: localhost port: 39999 user: 'someuser' (optional) group: 'someuser' (optional) lib: '/some/file' (optional) tomcat: true (optional)
4.13. collectd.modules
This state helps distributing collectd external modules written in various languages (see [python](https://collectd.org/wiki/index.php/Plugin:Python) or [perl](https://collectd.org/wiki/index.php/Plugin:Perl) for example).
Sample usage:
-
Include
collectd.modules
in your topfile. -
Create collectd/modules/files folder in your states.
-
Put modules you need in that folder.
-
Modules will be put in
collectd.moduledirconfig
folder.
5. Usage
5.1. Custom state file
Create a custom state file (for example collectd-custom.sls
) that
includes the plugins you want and the base state. :
include: - collectd - collectd.disk - collectd.syslog
Then in your topfile: :
'servername': - collectd-custom