]> arthur.barton.de Git - netdata.git/commitdiff
the configuration section is named "backend"
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 20 Nov 2016 03:07:30 +0000 (05:07 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 20 Nov 2016 03:07:30 +0000 (05:07 +0200)
src/appconfig.c
src/backends.c

index 8fc28a0216351a5978d16e6a4faa06ce17be2a07..4749890bd9bc12160b2ad4934e19d1aed3a64206 100644 (file)
@@ -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;
index 827ed2efe1eb380bf63be93ec29861314efc447d..7c83643967a536f50d009e8c8c279fa9f88d2051 100644 (file)
@@ -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;