Code

use existing type to publish the data
authorWilfried Goesgens <willi@arangodb.com>
Fri, 29 Sep 2017 10:47:27 +0000 (12:47 +0200)
committerWilfried Goesgens <willi@arangodb.com>
Fri, 29 Sep 2017 10:47:27 +0000 (12:47 +0200)
src/processes.c
src/types.db

index 459ab985dd8e156a07a6d34831c77854da7d6004..0984d7f64286a15d3acb984d90950e4b13ed8496 100644 (file)
@@ -783,7 +783,8 @@ static void ps_submit_proc_list(procstat_t *ps) {
   }
 
   if (ps->num_maps > 0) {
-    sstrncpy(vl.type, "memory_maps", sizeof(vl.type));
+    sstrncpy(vl.type, "file_handles", sizeof(vl.type));
+    sstrncpy(vl.type_instance, "mapped", sizeof(vl.type_instance));
     vl.values[0].gauge = ps->num_maps;
     vl.values_len = 1;
     plugin_dispatch_values(&vl);
index c5bcab63cbe40d65468a44a5ecfb66ac7a62cf21..577d28f184c8a67cca60754fa34c0c4618a16834 100644 (file)
@@ -129,7 +129,6 @@ latency                 value:GAUGE:0:U
 links                   value:GAUGE:0:U
 load                    shortterm:GAUGE:0:5000, midterm:GAUGE:0:5000, longterm:GAUGE:0:5000
 memory_bandwidth        value:DERIVE:0:U
-memory_maps             value:GAUGE:0:U
 md_disks                value:GAUGE:0:U
 memcached_command       value:DERIVE:0:U
 memcached_connections   value:GAUGE:0:U