From: Costa Tsaousis (ktsaou) Date: Sun, 20 Nov 2016 03:07:30 +0000 (+0200) Subject: the configuration section is named "backend" X-Git-Tag: v1.5.0~173^2~9 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65556aa90325ad107d44abcea1be93e036c10916;p=netdata.git the configuration section is named "backend" --- diff --git a/src/appconfig.c b/src/appconfig.c index 8fc28a02..4749890b 100644 --- a/src/appconfig.c +++ b/src/appconfig.c @@ -493,7 +493,7 @@ void generate_config(BUFFER *wb, int only_changed) !strcmp(co->name, "plugins") || !strcmp(co->name, "registry") || !strcmp(co->name, "health") || - !strcmp(co->name, "backends")) + !strcmp(co->name, "backend")) pri = 0; else if(!strncmp(co->name, "plugin:", 7)) pri = 1; else pri = 2; diff --git a/src/backends.c b/src/backends.c index 827ed2ef..7c836439 100644 --- a/src/backends.c +++ b/src/backends.c @@ -237,7 +237,7 @@ void *backends_main(void *ptr) { BUFFER *b = buffer_create(1); void (*formatter)(BUFFER *b, const char *prefix, RRDHOST *host, RRDSET *st, RRDDIM *rd, time_t after, time_t before); - info("BACKENDs thread created with task id %d", gettid()); + info("BACKEND thread created with task id %d", gettid()); if(pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL) != 0) error("Cannot set pthread cancel type to DEFERRED."); @@ -247,13 +247,13 @@ void *backends_main(void *ptr) { int default_port = 0; int sock = -1; - int enabled = config_get_boolean("backends", "enable", 0); - const char *source = config_get("backends", "data source", "as stored"); - const char *type = config_get("backends", "type", "graphite"); - const char *destination = config_get("backends", "destination", "localhost"); - const char *prefix = config_get("backends", "prefix", "netdata"); - int frequency = (int)config_get_number("backends", "update every", 30); - int buffer_on_failures = (int)config_get_number("backends", "buffer on failures", 10); + int enabled = config_get_boolean("backend", "enable", 0); + const char *source = config_get("backend", "data source", "as stored"); + const char *type = config_get("backend", "type", "graphite"); + const char *destination = config_get("backend", "destination", "localhost"); + const char *prefix = config_get("backend", "prefix", "netdata"); + int frequency = (int)config_get_number("backend", "update every", 30); + int buffer_on_failures = (int)config_get_number("backend", "buffer on failures", 10); if(!enabled) goto cleanup; @@ -380,7 +380,7 @@ cleanup: if(sock != -1) close(sock); - info("BACKENDs thread exiting"); + info("BACKEND thread exiting"); pthread_exit(NULL); return NULL;