projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dfb1782
)
virt plugin: Support new metric from libvirt-5.0.0 virDomainMemoryStats()
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 12 May 2019 06:11:41 +0000
(13:11 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 12 May 2019 06:16:33 +0000
(13:16 +0700)
Closes: #3143
src/virt.c
patch
|
blob
|
history
diff --git
a/src/virt.c
b/src/virt.c
index
9d368af
..
4232911
100644
(file)
--- 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 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);
if ((tag_index < 0) || (tag_index >= (int)STATIC_ARRAY_SIZE(tags))) {
ERROR("virt plugin: Array index out of bounds: tag_index = %d", tag_index);