Skip to content

Instantly share code, notes, and snippets.

@heinrichvk
Last active November 25, 2015 08:41
Show Gist options
  • Save heinrichvk/6ca81ccd5d38f9b7a4d0 to your computer and use it in GitHub Desktop.
Save heinrichvk/6ca81ccd5d38f9b7a4d0 to your computer and use it in GitHub Desktop.
atsd_write_plugin_example_conf
LoadPlugin aggregation
LoadPlugin contextswitch
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin interface
LoadPlugin load
LoadPlugin logfile
LoadPlugin memory
LoadPlugin processes
LoadPlugin swap
LoadPlugin syslog
LoadPlugin uptime
LoadPlugin users
LoadPlugin write_atsd
LoadPlugin vmem
# The following configuration aggregates the CPU statistics from all CPUs
# into one set using the average consolidation function.
<Plugin aggregation>
<Aggregation>
Plugin "cpu"
Type "cpu"
GroupBy "Host"
GroupBy "TypeInstance"
CalculateAverage true
</Aggregation>
</Plugin>
# The following configuration collects data from all filesystems:
# the number of free, reserved and used inodes is reported in addition to
# the usual metrics, the values are relative percentage.
<Plugin df>
IgnoreSelected true
ReportInodes true
ValuesPercentage true
</Plugin>
# The following configuration collects performance statistics from all
# hard-disks and, where supported, partitions.
<Plugin disk>
IgnoreSelected true
</Plugin>
# The following configuration collects information about the network traffic,
# packets per second and errors from all network interfaces.
<Plugin interface>
IgnoreSelected true
</Plugin>
# The following configuration sets the log-level and the file to write
# log messages to; all lines are prefixed by the severity of the log
# message and by the current time.
<Plugin logfile>
LogLevel info
File "/var/log/collectd.log"
Timestamp true
PrintSeverity true
</Plugin>
# The following configuration sets the log-level info.
<Plugin syslog>
LogLevel info
</Plugin>
# The following configuration connects to ATSD server on localhost
# via TCP and sends data via port 8081. The data will be sent with
# Entity "entity" and Prefix "collectd".
<Plugin write_atsd>
<Node "atsd">
Host "atsd_server"
Port 8081
Protocol "tcp"
Prefix "collectd."
Entity "nurswgsvl007"
<Cache "cpu">
Interval 95
Threshold 5
</Cache>
<Cache "disk">
Interval 300
Threshold 1
</Cache>
</Node>
</Plugin>
# The following configuration enables verbose collection of information
# about the usage of virtual memory
<Plugin vmem>
Verbose true
</Plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment