From dc71a8c2fc5c63367b42829ad6e6db11f0a31a22 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Fri, 29 Sep 2017 12:47:27 +0200 Subject: [PATCH] use existing type to publish the data --- src/processes.c | 3 ++- src/types.db | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/processes.c b/src/processes.c index 459ab985..0984d7f6 100644 --- a/src/processes.c +++ b/src/processes.c @@ -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); diff --git a/src/types.db b/src/types.db index c5bcab63..577d28f1 100644 --- a/src/types.db +++ b/src/types.db @@ -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 -- 2.30.2