projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a735c52
)
virt plugin: Add disk_time reporting
author
Francesco Romani
<fromani@redhat.com>
Fri, 9 Dec 2016 15:54:32 +0000
(16:54 +0100)
committer
Francesco Romani
<fromani@redhat.com>
Mon, 13 Feb 2017 14:06:13 +0000
(15:06 +0100)
Signed-off-by: Francesco Romani <fromani@redhat.com>
src/virt.c
patch
|
blob
|
history
diff --git
a/src/virt.c
b/src/virt.c
index
bb5443c
..
ee51bb5
100644
(file)
--- a/
src/virt.c
+++ b/
src/virt.c
@@
-380,6
+380,10
@@
static void disk_submit(struct lv_block_info *binfo, virDomainPtr dom,
if ((binfo->bi.rd_bytes != -1) && (binfo->bi.wr_bytes != -1))
submit_derive2("disk_octets", (derive_t)binfo->bi.rd_bytes,
(derive_t)binfo->bi.wr_bytes, dom, type_instance);
+
+ if ((binfo->rd_total_times != -1) && (binfo->wr_total_times != -1))
+ submit_derive2("disk_time", (derive_t)binfo->rd_total_times,
+ (derive_t)binfo->wr_total_times, dom, type_instance);
}
static int lv_config(const char *key, const char *value) {