From 86bef190cc3edebe04771b80ecb568a0222cd3ee Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Sun, 12 May 2019 13:11:41 +0700 Subject: [PATCH] virt plugin: Support new metric from libvirt-5.0.0 virDomainMemoryStats() Closes: #3143 --- src/virt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/virt.c b/src/virt.c index 9d368af6..42329111 100644 --- a/src/virt.c +++ b/src/virt.c @@ -916,10 +916,10 @@ static void memory_submit(virDomainPtr dom, gauge_t value) { static void memory_stats_submit(gauge_t value, virDomainPtr dom, int tag_index) { - static const char *tags[] = {"swap_in", "swap_out", "major_fault", - "minor_fault", "unused", "available", - "actual_balloon", "rss", "usable", - "last_update"}; + static const char *tags[] = {"swap_in", "swap_out", "major_fault", + "minor_fault", "unused", "available", + "actual_balloon", "rss", "usable", + "last_update", "disk_caches"}; if ((tag_index < 0) || (tag_index >= (int)STATIC_ARRAY_SIZE(tags))) { ERROR("virt plugin: Array index out of bounds: tag_index = %d", tag_index); -- 2.11.0