VES: add new tag to strip extra dashes 41/46041/1
authorMytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
Wed, 18 Oct 2017 15:18:07 +0000 (16:18 +0100)
committerMytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
Wed, 18 Oct 2017 15:18:07 +0000 (16:18 +0100)
commit4ae8eca14448bac6be46fbbf22d2ddc5d8ae7028
treecdb4653090a8ca34caed19f232b52697e6cb19e5
parent787c0f30f5027ac3d072f0c5e53f970d8273e3ac
VES: add new tag to strip extra dashes

The `!StripExtraDash` tag can be used in YAML configuration
file to strip extra dashes in the YAML filed value. This may
happen if some of the collectd plugin field (plugin_instance,
type_instace etc.) is set to empty value but the field is
specified in the YAML configuration file. For instance:

"{vl.plugin_instance}-{vl.type_instance}"

The result fo the example above can be string consisting
extra dashes if `type_instace` field is not set by a collectd
plugin:

"load-"

Change-Id: I5cf7b19902acdfb0b4a93f3bf0c8b8e05cff2e97
Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
3rd_party/collectd-ves-app/ves_app/guest.yaml
3rd_party/collectd-ves-app/ves_app/host.yaml
3rd_party/collectd-ves-app/ves_app/normalizer.py