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 459ab98..0984d7f 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 c5bcab6..577d28f 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