Hello Piotr Kliczewski, Francesco Romani,

I'd like you to do a code review.  Please visit

    https://gerrit.ovirt.org/59776

to review the following change.

Change subject: Send host reports each sampling interval from HostMonitor
......................................................................

Send host reports each sampling interval from HostMonitor

Change-Id: I724199135b89f85ac8abe7dc8073412f4764bc51
Signed-off-by: Yaniv Bronhaim <[email protected]>
Reviewed-on: https://gerrit.ovirt.org/59067
Continuous-Integration: Jenkins CI
Reviewed-by: Francesco Romani <[email protected]>
Reviewed-by: Piotr Kliczewski <[email protected]>
---
M lib/vdsm/virt/sampling.py
1 file changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/76/59776/1

diff --git a/lib/vdsm/virt/sampling.py b/lib/vdsm/virt/sampling.py
index bec27bb..b49666b 100644
--- a/lib/vdsm/virt/sampling.py
+++ b/lib/vdsm/virt/sampling.py
@@ -1,5 +1,5 @@
 #
-# Copyright 2008-2015 Red Hat, Inc.
+# Copyright 2008-2016 Red Hat, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -34,6 +34,7 @@
 from vdsm import numa
 from vdsm import utils
 from vdsm.constants import P_VDSM_RUN, P_VDSM_CLIENT_LOG
+from vdsm.host import api as hostapi
 from vdsm.network import ipwrapper
 from vdsm.network.netinfo import nics, bonding, vlans
 from vdsm.virt.utils import ExpiringCache
@@ -546,6 +547,11 @@
     def __call__(self):
         sample = HostSample(self._pid)
         self._samples.append(sample)
+
+        if self._cif:
+            stats = hostapi.get_stats(self._cif, self._samples.stats())
+            hostapi.report_stats(stats)
+
         second_last = self._samples.last(nth=2)
         if second_last is None:
             self._CONNLOG.debug('%s', sample.to_connlog())


-- 
To view, visit https://gerrit.ovirt.org/59776
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I724199135b89f85ac8abe7dc8073412f4764bc51
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-4.0
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Piotr Kliczewski <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]

Reply via email to