diff --git a/elements/collectl/README.md b/elements/collectl/README.md new file mode 100644 index 000000000..e5bc501a1 --- /dev/null +++ b/elements/collectl/README.md @@ -0,0 +1,5 @@ +Installs the collectl package for gathering performance data when needed. + +The default configuration file /etc/collectl.conf has been changed to examine +cpu, disk, memory, network and process stats only and record eth and bond +stats for the networks. Both raw and plottable files will be produced. diff --git a/elements/collectl/element-deps b/elements/collectl/element-deps new file mode 100644 index 000000000..b0a0c5d7d --- /dev/null +++ b/elements/collectl/element-deps @@ -0,0 +1 @@ +os-apply-config diff --git a/elements/collectl/install.d/85-collectl b/elements/collectl/install.d/85-collectl new file mode 100755 index 000000000..dd2334699 --- /dev/null +++ b/elements/collectl/install.d/85-collectl @@ -0,0 +1,10 @@ +#!/bin/bash +set -eux + +install-packages collectl + +# The default configuration has been changed to examine cpu, disk, memory, +# network and process stats only and only record eth and bond stats for the +# networks. Both raw and plottable files will be produced. + +sudo sed -i "/^DaemonCommands/c\DaemonCommands = -f /var/log/collectl -r00:00,7 -m -F60 -scdmnZ --rawnetfilt eth|bond -P --rawtoo" /etc/collectl.conf