From: Wilfried Goesgens Date: Fri, 29 Sep 2017 10:47:27 +0000 (+0200) Subject: use existing type to publish the data X-Git-Tag: collectd-5.8.0~62^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc71a8c2fc5c63367b42829ad6e6db11f0a31a22;p=collectd.git use existing type to publish the data --- 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