Bug 1459764

Summary: Collectd records with one numeric value are not reporting the numeric value to the metrics store
Product: [oVirt] ovirt-engine-metrics Reporter: Shirly Radco <sradco>
Component: GenericAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.3CC: bugs, lsvaty, rmeggins, stirabos
Target Milestone: ovirt-4.1.3Flags: rule-engine: ovirt-4.1+
lsvaty: testing_ack+
Target Release: 1.0.4.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-06 14:01:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1461690, 1464394    
Bug Blocks: 1402901, 1456459    

Description Shirly Radco 2017-06-08 06:57:22 UTC
Description of problem:
The collectd swap plugin reports records but the collectd.swap.swap and collectd.swap.swap_io do not contain value when we inspect the data in Kibana.

Version-Release number of selected component (if applicable):
1.0.3

How reproducible:


Steps to Reproduce:
1.Setup engine and hosts
2.Setup the metrics store
3.Install metrics+logging on engine and hosts
4.Filter by collectd.plugin=swap in Kibana
5.Check the value of the collectd.swap.swap and collectd.swap.swap_io fields

Actual results:
The collectd.swap.swap and collectd.swap.swap_io are3 empty

Expected results:
The fields should show the swap actual value

Additional info:

Comment 1 Shirly Radco 2017-06-13 07:37:50 UTC
This was found as a more general problem. 
It seems that the  fluent-plugin-viaq_data_model removes the numeric value for records that contain only one value. 
This needs further investigation.
I asked Rich Megginson to check the plugin.

Comment 2 Rich Megginson 2017-06-13 15:00:22 UTC
This is a bug in the viaq plugin: https://github.com/ViaQ/fluent-plugin-viaq_data_model/pull/5

Comment 4 Rich Megginson 2017-06-14 17:29:00 UTC
New package is available upstream: http://cbs.centos.org/repos/opstools7-fluentd-012-candidate/x86_64/os/Packages/

[ ]	rubygem-fluent-plugin-viaq_data_model-0.0.5-1.el7.noarch.rpm	14-Jun-2017 17:09 	9.7K

Comment 5 Lukas Svaty 2017-06-22 09:33:47 UTC
waiting for new build with the verification

Comment 6 Lukas Svaty 2017-06-26 13:35:00 UTC
values are reported correctly in ovirt-engine-metrics-1.0.4.3-1.el7ev.noarch

"collectd": {
      "dstypes": [
        "derive"
      ],
      "interval": 10,
      "plugin": "swap",
      "type": "swap_io",
      "type_instance": "in",
      "swap": {
        "swap_io": 0
      }

"collectd": {
      "dstypes": [
        "gauge"
      ],
      "interval": 10,
      "plugin": "swap",
      "type": "swap",
      "type_instance": "used",
      "swap": {
        "swap": 4186112
      }