projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc0ae7a
)
virt plugin: only gather stats for running domains
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 9 Dec 2014 16:06:43 +0000
(17:06 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Fri, 12 Dec 2014 21:47:51 +0000
(22:47 +0100)
Conflicts:
src/libvirt.c
src/libvirt.c
patch
|
blob
|
history
diff --git
a/src/libvirt.c
b/src/libvirt.c
index
1f62879
..
4ab8bd5
100644
(file)
--- a/
src/libvirt.c
+++ b/
src/libvirt.c
@@
-306,6
+306,12
@@
lv_read (void)
continue;
}
+ if (info.state != VIR_DOMAIN_RUNNING)
+ {
+ /* only gather stats for running domains */
+ continue;
+ }
+
cpu_submit (info.cpuTime, t, domains[i], "virt_cpu_total");
vinfo = malloc (info.nrVirtCpu * sizeof (vinfo[0]));