]> arthur.barton.de Git - netdata.git/commitdiff
optimization for lower CPU consumption for bind collection
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 2 Feb 2016 22:31:39 +0000 (00:31 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 2 Feb 2016 22:31:39 +0000 (00:31 +0200)
node.d/named.node.js

index 154fe20aa9ab11b0b59c4f583c6ce62e569b09a2..77c6f1a5021dec678a09f175df2202de32d1962b 100755 (executable)
        "servers": [\r
                {\r
                        "name": "bind1",\r
-                       "url": "http://127.0.0.1:8888/json/v1",\r
+                       "url": "http://127.0.0.1:8888/json/v1/server",\r
                        "update_every": 1\r
                },\r
                {\r
                        "name": "bind2",\r
-                       "url": "http://10.1.2.3:8888/json/v1",\r
+                       "url": "http://10.1.2.3:8888/json/v1/server",\r
                        "update_every": 2\r
                }\r
        ]\r
@@ -491,7 +491,7 @@ var named = {
                var added = 0;\r
 \r
                if(this.enable_autodetect === true) {\r
-                       this.serviceExecute('local', 'http://localhost:8888/json/v1', this.update_every);\r
+                       this.serviceExecute('local', 'http://localhost:8888/json/v1/server', this.update_every);\r
                        added++;\r
                }\r
                \r