src: add virt plugin configuration 15/37915/4
authorShobhi <shobhi.jain@intel.com>
Fri, 21 Jul 2017 10:58:17 +0000 (11:58 +0100)
committerMaryam Tahhan <maryam.tahhan@intel.com>
Wed, 26 Jul 2017 13:08:01 +0000 (13:08 +0000)
* adds sample configuration file for virt plugin.
* updates package list for libvirt package.

Change-Id: I564fd89f7eaaa170962f5d05bbe26424ab99f6e2
Signed-off-by: Shobhi <shobhi.jain@intel.com>
src/collectd/collectd_sample_configs/virt.conf [new file with mode: 0644]
systems/centos/7/build_base_machine.sh
systems/fedora/22/build_base_machine.sh
systems/rhel/7/build_base_machine.sh
systems/ubuntu/14.04/build_base_machine.sh
systems/ubuntu/16.04/build_base_machine.sh

diff --git a/src/collectd/collectd_sample_configs/virt.conf b/src/collectd/collectd_sample_configs/virt.conf
new file mode 100644 (file)
index 0000000..88229e3
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 2017 OPNFV
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LoadPlugin virt
+<Plugin virt>
+# Connection "xen:///"
+  RefreshInterval 60
+# Domain "name"
+# BlockDevice "name:device"
+# BlockDeviceFormat target
+# BlockDeviceFormatBasename false
+# InterfaceDevice "name:device"
+# IgnoreSelected false
+# HostnameFormat name
+# InterfaceFormat name
+# PluginInstanceFormat name
+# Instances 1
+  ExtraStats "cpu_util disk disk_err domain_state fs_info job_stats_background pcpu perf vcpupin"
+</Plugin>
index 0e56c77..9c49d49 100755 (executable)
@@ -50,6 +50,7 @@ iptables-devel
 libmemcached-devel
 gtk2-devel
 libvirt-devel
+libvirt-daemon
 mcelog
 wget
 net-snmp-devel
index be22511..5662eb4 100755 (executable)
@@ -42,6 +42,7 @@ autoconf
 libtool
 libpcap-devel
 libnet
+libvirt-daemon
 vim
 wget
 git
index c5191f7..85382ae 100755 (executable)
@@ -50,6 +50,7 @@ iptables-devel
 libmemcached-devel
 gtk2-devel
 libvirt-devel
+libvirt-daemon
 mcelog
 wget
 net-snmp-devel
index 0dc21d9..4f62f30 100755 (executable)
@@ -66,6 +66,7 @@ apt-get -y install \
     libupsclient-dev \
     libvarnishapi-dev \
     libvirt-dev \
+    libvirt-daemon \
     libxen-dev \
     libxml2-dev \
     libyajl-dev \
index ba64ad4..7ea4240 100755 (executable)
@@ -66,6 +66,7 @@ apt-get -y install \
     libupsclient-dev \
     libvarnishapi-dev \
     libvirt-dev \
+    libvirt-daemon \
     libxen-dev \
     libxml2-dev \
     libyajl-dev \