]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
memory plugin: Enable utilization reporting by default.
authorFlorian Forster <octo@collectd.org>
Thu, 4 Jan 2024 06:45:16 +0000 (07:45 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 15 Jan 2024 14:21:58 +0000 (15:21 +0100)
This follows OpenTelemetry semantic convention.

src/collectd.conf.in
src/collectd.conf.pod
src/memory.c

index 181fb147bcf42564e6c79e8287ac94846b13d52b..c8f2444ce1832a1e804d33f0b9d2850c782650ba 100644 (file)
 
 #<Plugin memory>
 #      ReportUsage true
-#      ReportUtilization false
+#      ReportUtilization true
 #</Plugin>
 
 #<Plugin mmc>
index 9f47451fdec5cf73fb96a87a48ebc27a7a49e7f0..75447631e9515b8449b0f6e8afa390d00815fc6a 100644 (file)
@@ -5274,10 +5274,10 @@ The I<memory plugin> provides the following configuration options:
 Enables or disables reporting of physical memory usage in absolute numbers,
 i.e. bytes. Defaults to B<true>.
 
-=item B<ReportUtilization> B<false>|B<true>
+=item B<ReportUtilization> B<true>|B<false>
 
 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<false>.
+memory, e.g. the fraction of physical memory used. Defaults to B<true>.
 
 This is useful for deploying I<collectd> in a heterogeneous environment in
 which the sizes of physical memory vary.
index 1e8520371ec4b3bf8215cef5dc5d254b4bacc406..a1b0b6070549a254a26acbf9a535833d7578041b 100644 (file)
@@ -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) /* {{{ */
 {