summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShobhi <shobhi.jain@intel.com>2017-07-21 15:23:52 +0100
committerMaryam Tahhan <maryam.tahhan@intel.com>2017-07-26 13:00:01 +0000
commitff4d41057fa5b4f0f6d2233c99636d2bd31166cb (patch)
tree3266d1091717e79c41a28dde98a212c96e6cda30
parent610943a6b002d179918f71f059ee6cbb7d35a465 (diff)
Updates OVS PMD stats information
Change-Id: I8d1ba578bdb3023ebe20893a818c596b9839c203 Signed-off-by: Shobhi <shobhi.jain@intel.com>
-rw-r--r--docs/release/userguide/feature.userguide.rst52
1 files changed, 47 insertions, 5 deletions
diff --git a/docs/release/userguide/feature.userguide.rst b/docs/release/userguide/feature.userguide.rst
index 45b5d8c4..4d2469c0 100644
--- a/docs/release/userguide/feature.userguide.rst
+++ b/docs/release/userguide/feature.userguide.rst
@@ -74,6 +74,11 @@ Other plugins existing as a pull request into collectd master:
statistics about virtualized guests on a system directly from the hypervisor,
without a need to install collectd instance on the guest.
+Third party application in Barometer repository:
+
+* *Open vSwitch PMD stats*: An aplication that retrieves PMD stats from OVS. It is run
+ through exec plugin.
+
**Plugins included in the Danube release:**
* Hugepages
@@ -121,11 +126,14 @@ will be /opt/collectd.
Sample configuration files can be found in '/opt/collectd/etc/collectd.conf.d'
.. note::
- - If you plan on using the Exec plugin, the plugin requires non-root
- user to execute scripts. By default, `collectd_exec` user is used. Barometer
- scripts do *not* create this user. It needs to be manually added or exec plugin
- configuration has to be changed to use other, existing user before starting
- collectd service.
+ - If you plan on using the Exec plugin (for OVS_PMD_STATS or for executing scripts
+ on notification generation), the plugin requires a non-root
+ user to execute scripts. By default, `collectd_exec` user is used in the exec.conf
+ provided in the sample configurations directory under src/collectd in the Barometer
+ repo. The scripts *DO NOT* create this user. You need to create this user before you
+ run build_base_machine.sh. Or modify configuration in the sample configurations
+ directory under src/collectd to use another existing non root user before running
+ run build_base_machine.sh.
- If you don't want to use one of the Barometer plugins, simply remove the
sample config file from '/opt/collectd/etc/collectd.conf.d'
@@ -760,6 +768,40 @@ to include:
For more information on the plugin parameters, please see:
https://github.com/collectd/collectd/blob/master/src/collectd.conf.pod
+OVS PMD stats
+^^^^^^^^^^^^^^
+Repo: https://gerrit.opnfv.org/gerrit/barometer
+
+Prequistes:
+1. Open vSwitch dependencies are installed.
+2. Open vSwitch service is running.
+3. Ovsdb-server manager is configured.
+You can refer `Open vSwitch Plugins`_ section above for each one of them.
+
+OVS PMD stats application is run through the exec plugin.
+
+To configure the OVS PMD stats application you need to modify the exec plugin configuration
+to include:
+
+.. code:: bash
+
+ <LoadPlugin exec>
+ Interval 1
+ </LoadPlugin
+ <Plugin exec>
+ Exec "user:group" "<path to ovs_pmd_stat.sh>"
+ #NotificationExec "nobody" "/usr/lib/collectd/notify.sh"
+ </Plugin>
+
+.. note:: Exec plugin configuration has to be changed to use appropriate user before starting collectd service.
+
+ovs_pmd_stat.sh calls the script for OVS PMD stats application with its argument:
+
+.. code:: bash
+
+ sudo python /usr/local/src/ovs_pmd_stats.py" "--socket-pid-file"
+ "/var/run/openvswitch/ovs-vswitchd.pid"
+
SNMP Agent Plugin
^^^^^^^^^^^^^^^^^
Repo: https://github.com/maryamtahhan/collectd/