]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
vmem: add metrics starting with `pgrefill`
authorzzzyhtheonly <zyhtheonly@yeah.net>
Fri, 26 May 2023 08:25:11 +0000 (16:25 +0800)
committerMatthias Runge <mrunge@matthias-runge.de>
Fri, 2 Jun 2023 10:12:16 +0000 (12:12 +0200)
Signed-off-by: zzzyhtheonly <zyhtheonly@yeah.net>
Signed-off-by: luffysong <zsfz_one@163.com>
src/vmem.c

index aed18b4205e99b34e8da0f450570d640ebb5b144..75a4395dbd91e2564aba9040c436e2bd1f2ae7bc 100644 (file)
@@ -215,6 +215,9 @@ static int vmem_read(void) {
       char *inst = key + strlen("pgscan_");
       value_t value = {.derive = counter};
       submit_one(inst, "vmpage_action", "scan", value);
+    } else if (strncmp("pgrefill", key, strlen("pgrefill")) == 0) {
+      value_t value = {.derive = counter};
+      submit_one(NULL, "vmpage_action", "refill", value);
     }
 
     /*