From Yaniv Bronhaim <ybronhei(a)redhat.com>:
Yaniv Bronhaim has uploaded a new change for review.
Change subject: Rename network-interface prefix to nic
......................................................................
Rename network-interface prefix to nic
To avoid report of long metric names. We are limited to 63 chars
Change-Id: I051817fac598337cb9647440aa3a4bc5b866e1c4
Signed-off-by: Yaniv Bronhaim <ybronhei(a)redhat.com>
---
M lib/vdsm/host/api.py
M lib/vdsm/virt/vmstats.py
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/31/66231/1
diff --git a/lib/vdsm/host/api.py b/lib/vdsm/host/api.py
index 8a52d2a..138b6e8 100644
--- a/lib/vdsm/host/api.py
+++ b/lib/vdsm/host/api.py
@@ -122,7 +122,7 @@
if 'network' in hoststats:
for interface in hoststats['network']:
if_info = hoststats['network'][interface]
- net_prefix = prefix + '.network_interfaces.' + interface
+ net_prefix = prefix + '.nic.' + interface
data[net_prefix + '.speed'] = if_info['speed']
data[net_prefix + '.rx_rate'] = if_info['rxRate']
data[net_prefix + '.tx_rate'] = if_info['txRate']
diff --git a/lib/vdsm/virt/vmstats.py b/lib/vdsm/virt/vmstats.py
index 8e271cb..4fcaaf5 100644
--- a/lib/vdsm/virt/vmstats.py
+++ b/lib/vdsm/virt/vmstats.py
@@ -241,7 +241,7 @@
if 'network' in stat:
for interface in stat['network']:
- netprefix = prefix + '.network_interfaces.' + interface
+ netprefix = prefix + '.nic.' + interface
if_info = stat['network'][interface]
data[netprefix + '.speed'] = if_info['speed']
data[netprefix + '.rx.bytes'] = if_info['rx']
--
To view, visit
https://gerrit.ovirt.org/66231
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I051817fac598337cb9647440aa3a4bc5b866e1c4
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <ybronhei(a)redhat.com>