@cryptotaxi247 / netdata-1 / commits / 937083359

Disable slabinfo plugin by default (#7056)

Vladimir Kobal committed Oct 11, 2019 at 11:16 UTC 9370833598e7d9ea33bb65eff0542df9a84af942
2 files changed +7 -2
collectors/plugins.d/plugins_d.c
+3
@@ -779,6 +779,9 @@ void *pluginsd_main(void *ptr) {
779 int scan_frequency = (int) config_get_number(CONFIG_SECTION_PLUGINS, "check for new plugins every", 60);
780 if(scan_frequency < 1) scan_frequency = 1;
781
782 + // disable some plugins by default
783 + config_get_boolean(CONFIG_SECTION_PLUGINS, "slabinfo", CONFIG_BOOLEAN_NO);
784 +
785 // store the errno for each plugins directory
786 // so that we don't log broken directories on each loop
787 int directory_errors[PLUGINSD_MAX_DIRECTORIES] = { 0 };
collectors/slabinfo.plugin/README.md
+4 -2
@@ -4,10 +4,12 @@ SLAB is a cache mechanism used by the Kernel to avoid fragmentation.
4
5 Each internal structure (process, file descriptor, inode...) is stored within a SLAB.
6
7 -
7 ## configuring Netdata for slabinfo
8
10 -There is currently no configuration needed.
9 +The plugin is disabled by default because it collects and displays a huge amount of metrics.
10 +To enable it set `slabinfo = yes` in the `plugins` section of the `netdata.conf` configuration file.
11 +
12 +There is currently no configuration needed for the plugin itself.
13
14 As `/proc/slabinfo` is only readable by root, this plugin is setuid root.
15