Bug 1459908
Summary: | Rest API does not report network statistics host "data.current.tx, data.current.rx" | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Marian Jankular <mjankula> | |
Component: | ovirt-engine | Assignee: | Dominik Holler <dholler> | |
Status: | CLOSED ERRATA | QA Contact: | Michael Burman <mburman> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 4.0.3 | CC: | apinnick, danken, lsurette, mburman, mgoldboi, mjankula, mperina, pstehlik, rbalakri, Rhev-m-bugs, sradco, srevivo, ykaul, ylavi | |
Target Milestone: | ovirt-4.2.0 | Keywords: | ZStream | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | ovirt-engine-4.2.0-0.0.master.20170901193740.git7900511.el7.centos.noarch.rpm | Doc Type: | Enhancement | |
Doc Text: |
The precision of the rx_rate, tx_rate, rx_drop, and tx_drop of virtual and host network interfaces has been increased, enabling the REST API to generate more accurate network interface statistics.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1502510 1573145 (view as bug list) | Environment: | ||
Last Closed: | 2018-05-15 17:43:21 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1408963, 1434006, 1502510, 1573145 |
Description
Marian Jankular
2017-06-08 14:09:47 UTC
RX/TX values in API are computed from RX/TX percentages and max bandwidth of the interface (provided by speed attribute), so if speed is zero, the also RX/TX are zeros. Could you please take a look at the value of speed attribute? If it's non-zero could you please check RX/TX values in webadmin if they are the same as in API? in my setup i have speed 0, and rx/tx values are "<1" (In reply to Marian Jankular from comment #2) > in my setup i have speed 0, and rx/tx values are "<1" Can you try and run some traffic over? I did tried on our 4.1 environment which has load - 20 vms per node in web ui i see speed 1000, rx rate is 10, txrate is <1 however when using api i am still getting no value for current "name" : "data.current.rx", "description" : "Receive data rate", "href" : "/ovirt-engine/api/hosts/f1e96245-7ca3-4729-8abf-980501380a2b/nics/a442b3d7-7d3e-456b-a9cb-900d22171464/statistics/ecd0559f-e88f-3330-94b4-1f091b0ffdf7", "id" : "ecd0559f-e88f-3330-94b4-1f091b0ffdf7" }, { "kind" : "gauge", "type" : "decimal", "unit" : "bytes_per_second", "values" : { "value" : [ { "datum" : 0 } ] }, "host_nic" : { "href" : "/ovirt-engine/api/hosts/f1e96245-7ca3-4729-8abf-980501380a2b/nics/a442b3d7-7d3e-456b-a9cb-900d22171464", "id" : "a442b3d7-7d3e-456b-a9cb-900d22171464" }, "name" : "data.current.tx", "description" : "Transmit data rate", "href" : "/ovirt-engine/api/hosts/f1e96245-7ca3-4729-8abf-980501380a2b/nics/a442b3d7-7d3e-456b-a9cb-900d22171464/statistics/2c6fe105-4913-3f90-9425-07ddfeca5417", "id" : "2c6fe105-4913-3f90-9425-07ddfeca5417" }, { "kind" : "counter", "type" : "integer", "unit" : "bytes", "values" : { "value" : [ { "datum" : 199652833504 } ] I'm not able to reproduce on RHVM 4.1.2, it works as expected (checked on several hosts): 1. When rx/tx rate in webadmin is <1, then it's shown as 0 in restapi 2. When speed is non-zero and rx/tx rate in webadmin are different than <1, non-zero values are shown in restapi @Dan, is there any known issue around this area? Moving to network team. We are planning to release a metrics store next month that will allow you to collect raw value more accurately. The customer will probably want to move to this for monitoring. If we change the value type then the DWH will need to be changed as well. (In reply to Martin Perina from comment #5) > I'm not able to reproduce on RHVM 4.1.2, it works as expected (checked on > several hosts): > > 1. When rx/tx rate in webadmin is <1, then it's shown as 0 in restapi > 2. When speed is non-zero and rx/tx rate in webadmin are different than <1, > non-zero values are shown in restapi > > @Dan, is there any known issue around this area? I remember sradco complaining about something similar in the past. Do you recall a bz#? Verified on - 4.2.0-0.0.master.20170901193740.git7900511.el7.centos Dan - can we push to 4.1.z? A CFME bug depends on that one. (In reply to Oved Ourfali from comment #14) > Dan - can we push to 4.1.z? > A CFME bug depends on that one. yes, it should not be hard. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:1488 BZ<2>Jira Resync |