From: Francesco Romani Date: Fri, 9 Dec 2016 15:54:32 +0000 (+0100) Subject: virt plugin: Add disk_time reporting X-Git-Tag: collectd-5.8.0~237^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=41f4ec04a138e865189d0fb798a2e1c6832851b0;p=collectd.git virt plugin: Add disk_time reporting Signed-off-by: Francesco Romani --- diff --git a/src/virt.c b/src/virt.c index bb5443cb..ee51bb50 100644 --- 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) {