summaryrefslogtreecommitdiffstats
path: root/performanceTests/k8s/collectd
diff options
context:
space:
mode:
authorPawel Kasperkiewicz <pawel.kasperkiewicz@nokia.com>2020-06-04 16:56:48 +0200
committerAdam Wudzinski <adam.wudzinski@nokia.com>2020-06-04 18:52:41 +0200
commit3b6ba181623e844d5012362209d2f29616315395 (patch)
tree703abb4398d4a8e328acdaace390c140192fd5b7 /performanceTests/k8s/collectd
parent36e09e63f779b5ebec4391f1a444ef214850e2fe (diff)
Add CPU/RAM measurements collection
Add mechanism for CPU/RAM measurements collection from k8s nodes and from JMeter VM Issue-ID: DCAEGEN2-608 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: I78af2906254a19da383c7bae9ec919eadd326873
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
+