From 38a2852c84bb9ce692a79d3f1ab941b9f11106a4 Mon Sep 17 00:00:00 2001 From: Aditya Srivastava Date: Mon, 24 Aug 2020 01:53:02 +0530 Subject: Tools: Add K8s monitoring cluster This patch adds k8s monitoring cluster deployment using ansible for both client and server side. Also adds scripts (ansible roles) to clean (remove) the K8S cluster completely. Signed-off-by: Aditya Srivastava Change-Id: I1115869c0a3e72a20047b31994f3d27e5fdae6c6 --- .../roles/collectd/files/collectd.conf.j2 | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tools/lma/ansible-client/roles/collectd/files/collectd.conf.j2 (limited to 'tools/lma/ansible-client/roles/collectd/files/collectd.conf.j2') diff --git a/tools/lma/ansible-client/roles/collectd/files/collectd.conf.j2 b/tools/lma/ansible-client/roles/collectd/files/collectd.conf.j2 new file mode 100644 index 00000000..ba953e3a --- /dev/null +++ b/tools/lma/ansible-client/roles/collectd/files/collectd.conf.j2 @@ -0,0 +1,44 @@ +Hostname "{{ host_name }}" +Interval 10 +LoadPlugin intel_rdt +LoadPlugin processes +LoadPlugin interface +LoadPlugin network +LoadPlugin ovs_stats +LoadPlugin cpu +LoadPlugin memory +#LoadPlugin csv +#LoadPlugin write_http +#LoadPlugin dpdkstat +############################################################################## +# Plugin configuration # +############################################################################## + + ProcessMatch "ovs-vswitchd" "ovs-vswitchd" + ProcessMatch "ovsdb-server" "ovsdb-server" + ProcessMatch "collectd" "collectd" + + + + ReportByCpu true + ReportByState true + ValuesPercentage true + ReportNumCpu true + ReportGuestState false + SubtractGuestState false + + + + Server "10.10.120.211" "30826" + + + + Port "6640" + Address "127.0.0.1" + Socket "/usr/local/var/run/openvswitch/db.sock" + Bridges "vsperf-br0" + + + + Cores "2" "4-5" "6-7" "8" "9" "22" "23" "24" "25" "26" "27" + -- cgit 1.2.3-korg