From: Florian Forster Date: Thu, 4 Jan 2024 06:45:16 +0000 (+0100) Subject: memory plugin: Enable utilization reporting by default. X-Git-Tag: 6.0.0-rc0~10^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ede88c1b88c3764214e23dcd12f4b0c2b606b0a2;p=thirdparty%2Fcollectd.git memory plugin: Enable utilization reporting by default. This follows OpenTelemetry semantic convention. --- diff --git a/src/collectd.conf.in b/src/collectd.conf.in index 181fb147b..c8f2444ce 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -1057,7 +1057,7 @@ # # ReportUsage true -# ReportUtilization false +# ReportUtilization true # # diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 9f47451fd..75447631e 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -5274,10 +5274,10 @@ The I provides the following configuration options: Enables or disables reporting of physical memory usage in absolute numbers, i.e. bytes. Defaults to B. -=item B B|B +=item B B|B Enables or disables reporting of physical memory usage as a ratio of total -memory, e.g. the fraction of physical memory used. Defaults to B. +memory, e.g. the fraction of physical memory used. Defaults to B. This is useful for deploying I in a heterogeneous environment in which the sizes of physical memory vary. diff --git a/src/memory.c b/src/memory.c index 1e8520371..a1b0b6070 100644 --- a/src/memory.c +++ b/src/memory.c @@ -150,7 +150,7 @@ static int pagesize; #endif static bool report_usage = true; -static bool report_utilization; +static bool report_utilization = true; static int memory_config(oconfig_item_t *ci) /* {{{ */ {