The configure_collectd_plugins module enables and configures a set of collectd plugins that work well with SignalFx.
This is one of three modules provided by SignalFx for managing collectd. See Module Description.
Module Description
Collectd is a system statistics collection daemon. This module configures collectd plugins to collect useful and interesting metrics about your system.
This is one of three modules provided by SignalFx for managing collectd.
The configure_collectd_plugins module configures an existing instance of collectd to collect useful and interesting system metrics. You must have collectd installed in order to use this module.
SignalFx provides additional modules to install collectd and send metrics to SignalFx. See Module Description.
Usage
The configure_collectd_plugins module accepts parameters that enable or disable each of the plugins that it configures. The default value for all parameters is 'present'. To disable data collection by a plugin, change the value of its named parameter to 'absent'.
You can also use this module to install collectd plugins to monitor third-party software. To install a plugin, add its configuration snippet to your manifest file, and replace default configuration values with values that make sense for your environment as necessary.
Apache
class { 'configure_collectd_plugins::plugins::apache':
instanceName =>'myapacheinstance',
url =>'http://localhost/mod_status?auto'
}
Parameter
Description
instanceName
Appears as the dimension plugin_instance in SignalFx.
url
The URL at which the plugin can read the output of Apache's mod_status module.
Cassandra
class { 'configure_collectd_plugins::plugins::cassandra':
hostname => $::hostname
}
Parameter
Description
hostname
The name of the host running Cassandra.
Docker
include 'configure_collectd_plugins::plugins::docker'
Elasticsearch
class { 'configure_collectd_plugins::plugins::elasticsearch':
clustername =>'elasticsearch',
indexes =>'_all'
}
Parameter
Description
clustername
Appears as the dimension plugin_instance in SignalFx.
indexes
Indexes to monitor using this plugin. All indexes are monitored by default.
Kafka version 0.8.2.1 and up
class { 'configure_collectd_plugins::plugins::kafka_82':
hostname => $::hostname
}
Parameter
Description
hostname
The name of the host running Kafka.
Memcached
class { 'configure_collectd_plugins::plugins::memcached':
hostname =>'127.0.0.1',
port =>'11211'
}
Parameter
Description
hostname
Name of the host on which memcached is running.
port
Port on which memcached is running.
MySQL
class { 'configure_collectd_plugins::plugins::mysql':
hostname,
user,
password,
database
}
Parameter
Description
hostname
Name of the host on which MySQL is running.
user
Username that collectd can use to connect to MySQL.
password
Password that collectd can use to connect to MySQL.
database
Name of the MySQL database to monitor.
Nginx
class { 'configure_collectd_plugins::plugins::nginx':
url =>'http://localhost:80/nginx_status'
}
Parameter
Description
url
The URL at which collectd can read the output of nginx's stub status module.
PostgreSQL
class { 'configure_collectd_plugins::plugins::postgresql':
hostname,
user,
password
}
Parameter
Description
hostname
Name of the host on which PostgreSQL is running.
user
Username that collectd can use to connect to PostgreSQL.
password
Password that collectd can use to connect to PostgreSQL.
Redis Master
class { 'configure_collectd_plugins::plugins::redis_master':
hostname,
port
}
Use this configuration for Redis masters.
Parameter
Description
hostname
Name of the host on which Redis is running.
port
Port on which Redis is running.
Redis Slave
class { 'configure_collectd_plugins::plugins::redis_slave':
hostname,
port
}
Use this configuration for Redis slaves.
Parameter
Description
hostname
Name of the host on which Redis is running.
port
Port on which Redis is running.
Varnish
class { 'configure_collectd_plugins::plugins::varnish':
hostname,
port
}
Parameter
Description
hostname
Name of the host on which Varnish is running.
port
Port on which Varnish is running.
Zookeeper
include 'configure_collectd_plugins::plugins::zookeeper'
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.