diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-05-16 12:02:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 12:02:53 +0300 |
commit | 3fa3b0bd35c1a95887e68ee60624207640dde620 (patch) | |
tree | bb7fe8d80b77d7657bd630b88d81d40914ebee3c /libnetdata | |
parent | ce2e3083856bb8e080f4808e06286f023c313a97 (diff) |
fix `[global statistics]` section in netdata.conf (#12916)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/config/appconfig.c | 1 | ||||
-rw-r--r-- | libnetdata/config/appconfig.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libnetdata/config/appconfig.c b/libnetdata/config/appconfig.c index b710190d0a..5005fe6883 100644 --- a/libnetdata/config/appconfig.c +++ b/libnetdata/config/appconfig.c @@ -844,6 +844,7 @@ void appconfig_generate(struct config *root, BUFFER *wb, int only_changed) || !strcmp(co->name, CONFIG_SECTION_STREAM) || !strcmp(co->name, CONFIG_SECTION_HOST_LABEL) || !strcmp(co->name, CONFIG_SECTION_ML) + || !strcmp(co->name, CONFIG_SECTION_GLOBAL_STATISTICS) ) pri = 0; else if(!strncmp(co->name, "plugin:", 7)) pri = 1; diff --git a/libnetdata/config/appconfig.h b/libnetdata/config/appconfig.h index 321b19187a..a2acb1a786 100644 --- a/libnetdata/config/appconfig.h +++ b/libnetdata/config/appconfig.h @@ -95,6 +95,7 @@ #define CONFIG_SECTION_PROMETHEUS "prometheus:exporter" #define CONFIG_SECTION_HOST_LABEL "host labels" #define EXPORTING_CONF "exporting.conf" +#define CONFIG_SECTION_GLOBAL_STATISTICS "global statistics" // these are used to limit the configuration names and values lengths // they are not enforced by config.c functions (they will strdup() all strings, no matter of their length) |