From 58fbc4f1fb2446d7f489709e383804e6b887f469 Mon Sep 17 00:00:00 2001 From: Trent Geerdes Date: Tue, 29 Apr 2014 14:06:02 -0600 Subject: [PATCH] Adding collectl element. Collectl can be useful for 'benchmarking, monitoring a system's general health or trying to determine what your system was doing at some time in the past.' Change-Id: Ic629c73f9d42227636f1a3df2ee82b8fe5bc788c --- elements/collectl/README.md | 5 +++++ elements/collectl/element-deps | 1 + elements/collectl/install.d/85-collectl | 10 ++++++++++ 3 files changed, 16 insertions(+) create mode 100644 elements/collectl/README.md create mode 100644 elements/collectl/element-deps create mode 100755 elements/collectl/install.d/85-collectl 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