aboutsummaryrefslogtreecommitdiffstats
path: root/performanceTests/k8s/collectd
diff options
context:
space:
mode:
Diffstat (limited to 'performanceTests/k8s/collectd')
-rw-r--r--performanceTests/k8s/collectd/Makefile5
-rw-r--r--performanceTests/k8s/collectd/config/collectd.conf30
-rwxr-xr-xperformanceTests/k8s/collectd/config/install_collectd.sh6
3 files changed, 41 insertions, 0 deletions
diff --git a/performanceTests/k8s/collectd/Makefile b/performanceTests/k8s/collectd/Makefile
new file mode 100644
index 00000000..38f2ebf8
--- /dev/null
+++ b/performanceTests/k8s/collectd/Makefile
@@ -0,0 +1,5 @@
+
+install-collectd:
+ @echo "\n##### Install collectd #####"
+ @bash config/install_collectd.sh
+ @echo "##### DONE #####"
diff --git a/performanceTests/k8s/collectd/config/collectd.conf b/performanceTests/k8s/collectd/config/collectd.conf
new file mode 100644
index 00000000..62ec70d5
--- /dev/null
+++ b/performanceTests/k8s/collectd/config/collectd.conf
@@ -0,0 +1,30 @@
+FQDNLookup true
+
+LoadPlugin syslog
+LoadPlugin cpu
+LoadPlugin memory
+LoadPlugin network
+
+<Plugin syslog>
+ LogLevel info
+</Plugin>
+
+<Plugin cpu>
+ ReportByCpu false
+ ReportByState false
+ ValuesPercentage true
+ Interval 5
+</Plugin>
+
+<Plugin memory>
+ ValuesAbsolute false
+ ValuesPercentage true
+</Plugin>
+
+<Plugin network>
+ Server "10.183.39.145" "30003"
+</Plugin>
+
+<Include "/etc/collectd/collectd.conf.d">
+ Filter "*.conf"
+</Include>
diff --git a/performanceTests/k8s/collectd/config/install_collectd.sh b/performanceTests/k8s/collectd/config/install_collectd.sh
new file mode 100755
index 00000000..dbc35fed
--- /dev/null
+++ b/performanceTests/k8s/collectd/config/install_collectd.sh
@@ -0,0 +1,6 @@
+#! /bin/bash
+
+sudo apt-get update && sudo apt-get install collectd -y
+sudo cp config/collectd.conf /etc/collectd/collectd.conf
+sudo service collectd restart
+