bdols / collectd-formula

Home Page:http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

collectd-formula

A salt formula that installs and configures collectd. The system statistics collection daemon.

Available states

Installs the collectd package, and starts the associated collectd service.

Metastate used to include service into respective plugin states, included in collectd state.

Enables and configures the apache plugin.

Enables and configures the df plugin.

Enables and configures the disk plugin.

Enables and configures the ethstat plugin (please note there is a possible bug in the debian package).

Enables and configures the interface plugin.

Enables and configures the java plugin.

Enables and configures the mysql plugin. Needs refinement.

Enables and configures the network plugin.

Enables and configures the ntpd plugin.

Enables and configures the postgresql plugin. Needs refinement.

Enables and configures the syslog plugin.

Usage

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

Directly in topfile

Or if you don't mind having long lists in your topfile, just add whatever plugins you want and the base state.

'servername':
  - collectd
  - collectd.disk
  - collectd.syslog

Combined

Or you can combine both - default plugins in custom state and specific in topfile.

'apache-server':
  - collectd-custom
  - collectd.apache