A salt formula that installs and configures collectd. The system statistics collection daemon.
Note
See the full Salt Formulas installation and usage instructions.
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.
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
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
Or you can combine both - default plugins in custom state and specific in topfile.
'apache-server': - collectd-custom - collectd.apache