From 3b6ba181623e844d5012362209d2f29616315395 Mon Sep 17 00:00:00 2001 From: Pawel Kasperkiewicz Date: Thu, 4 Jun 2020 16:56:48 +0200 Subject: 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 Change-Id: I78af2906254a19da383c7bae9ec919eadd326873 --- performanceTests/k8s/collectd/Makefile | 5 ++++ performanceTests/k8s/collectd/config/collectd.conf | 30 ++++++++++++++++++++++ .../k8s/collectd/config/install_collectd.sh | 6 +++++ 3 files changed, 41 insertions(+) create mode 100644 performanceTests/k8s/collectd/Makefile create mode 100644 performanceTests/k8s/collectd/config/collectd.conf create mode 100755 performanceTests/k8s/collectd/config/install_collectd.sh (limited to 'performanceTests/k8s/collectd') 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 + + + LogLevel info + + + + ReportByCpu false + ReportByState false + ValuesPercentage true + Interval 5 + + + + ValuesAbsolute false + ValuesPercentage true + + + + Server "10.183.39.145" "30003" + + + + Filter "*.conf" + 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 + -- cgit 1.2.3-korg