1
0
Эх сурвалжийг харах

Use the `cfg.example.json`s in `config/`

chyeh 8 жил өмнө
parent
commit
0951125bff

+ 8 - 6
config/agent.json

@@ -1,22 +1,25 @@
 {
-    "debug": false,
-    "hostname": "docker-agent",
+    "debug": true,
+    "hostname": "",
     "ip": "",
     "plugin": {
         "enabled": false,
         "dir": "./plugin",
-        "git": "https://coding.net/ulricqin/plugin.git",
+        "git": "https://github.com/open-falcon/plugin.git",
         "logs": "./logs"
     },
     "heartbeat": {
         "enabled": true,
-        "addr": "10.20.30.40:6030",
+        "addr": "127.0.0.1:6030",
         "interval": 60,
         "timeout": 1000
     },
     "transfer": {
         "enabled": true,
-        "addr": "10.20.30.40:8433",
+        "addrs": [
+            "127.0.0.1:8433",
+            "127.0.0.1:8433"
+        ],
         "interval": 60,
         "timeout": 1000
     },
@@ -47,4 +50,3 @@
         "mem.swapfree": true
     }
 }
-

+ 4 - 4
config/aggregator.json

@@ -5,14 +5,14 @@
         "listen": "0.0.0.0:6055"
     },
     "database": {
-        "addr": "root:password@tcp(172.17.0.3:3306)/falcon_portal?loc=Local&parseTime=true",
+        "addr": "root:@tcp(127.0.0.1:3306)/falcon_portal?loc=Local&parseTime=true",
         "idle": 10,
         "ids": [1, -1],
         "interval": 55
     },
     "api": {
-        "hostnames": "http://10.20.30.40:5050/api/group/%s/hosts.json",
-        "push": "http://10.20.30.40:6060/api/push",
-        "graphLast": "http://10.20.30.40:9966/graph/last"
+        "hostnames": "http://127.0.0.1:5050/api/group/%s/hosts.json",
+        "push": "http://127.0.0.1:6060/api/push",
+        "graphLast": "http://127.0.0.1:9966/graph/last"
     }
 }

+ 28 - 0
config/gateway.json

@@ -0,0 +1,28 @@
+{
+    "debug": true,
+    "http": {
+        "enabled": true,
+        "listen": "0.0.0.0:6060"
+    },
+    "rpc": {
+        "enabled": true,
+        "listen": "0.0.0.0:8433"
+    },
+    "socket": {
+        "enabled": true,
+        "listen": "0.0.0.0:4444",
+        "timeout": 3600
+    },
+    "transfer": {
+        "enabled": true,
+        "batch": 200,
+        "retry": 1,
+        "connTimeout": 1000,
+        "callTimeout": 5000,
+        "maxConns": 32,
+        "maxIdle": 32,
+        "cluster": {
+            "t1": "127.0.0.1:8433"
+        }
+    }
+}

+ 25 - 16
config/graph.json

@@ -1,18 +1,27 @@
 {
-    "debug": true,
-    "http": {
-        "enabled": true,
-        "listen": "0.0.0.0:6071"
-    },
-    "rpc": {
-        "enabled": true,
-        "listen": "0.0.0.0:6070"
-    },
-    "rrd": {
-        "storage": "/home/graph/data/6070"
-    },
-    "db": {
-        "dsn": "root:password@tcp(172.17.0.3:3306)/graph?loc=Local&parseTime=true",
-        "maxIdle": 4
-    }
+	"debug": false,
+	"http": {
+		"enabled": true,
+		"listen": "0.0.0.0:6071"
+	},
+	"rpc": {
+		"enabled": true,
+		"listen": "0.0.0.0:6070"
+	},
+	"rrd": {
+		"storage": "/home/work/data/6070"
+	},
+	"db": {
+		"dsn": "root:@tcp(127.0.0.1:3306)/graph?loc=Local&parseTime=true",
+		"maxIdle": 4
+	},
+	"callTimeout": 5000,
+	"migrate": {
+		"enabled": false,
+		"concurrency": 2,
+		"replicas": 500,
+		"cluster": {
+			"graph-00" : "127.0.0.1:6070"
+		}
+	}
 }

+ 2 - 2
config/hbs.json

@@ -1,6 +1,6 @@
 {
-    "debug": false,
-    "database": "root:password@tcp(172.17.0.3:3306)/falcon_portal?loc=Local&parseTime=true",
+    "debug": true,
+    "database": "root:@tcp(127.0.0.1:3306)/falcon_portal?loc=Local&parseTime=true",
     "hosts": "",
     "maxIdle": 100,
     "listen": ":6030",

+ 4 - 4
config/judge.json

@@ -1,7 +1,7 @@
 {
-    "debug": false,
+    "debug": true,
     "debugHost": "nil",
-    "remain": 11,
+    "remain": 11, 
     "http": {
         "enabled": true,
         "listen": "0.0.0.0:6081"
@@ -11,7 +11,7 @@
         "listen": "0.0.0.0:6080"
     },
     "hbs": {
-        "servers": ["10.20.30.40:6030"],
+        "servers": ["127.0.0.1:6030"],
         "timeout": 300,
         "interval": 60
     },
@@ -20,7 +20,7 @@
         "minInterval": 300,
         "queuePattern": "event:p%v",
         "redis": {
-            "dsn": "172.17.0.3:6379",
+            "dsn": "127.0.0.1:6379",
             "maxIdle": 5,
             "connTimeout": 5000,
             "readTimeout": 5000,

+ 33 - 33
config/nodata.json

@@ -1,33 +1,33 @@
-{
-    "debug": false,
-    "http": {
-        "enabled": true,
-        "listen": "0.0.0.0:6090"
-    },
-    "query":{
-        "connectTimeout": 5000,
-        "requestTimeout": 30000,
-        "queryAddr": "10.20.30.40:9966"
-    },
-    "config": {
-        "enabled": true,
-        "dsn": "root:password@tcp(172.17.0.3:3306)/falcon_portal?loc=Local&parseTime=true&wait_timeout=604800",
-        "maxIdle": 4
-    },
-    "collector":{
-        "enabled": true,
-        "batch": 200,
-        "concurrent": 10
-    },
-    "sender":{
-        "enabled": true,
-        "connectTimeout": 5000,
-        "requestTimeout": 30000,
-        "transferAddr": "transfer:6060",
-        "batch": 500,
-        "block": {
-            "enabled": false,
-            "threshold": 32
-        }
-    }
-}
+{
+    "debug": true,
+    "http": {
+        "enabled": true,
+        "listen": "0.0.0.0:6090"
+    },
+    "query":{
+        "connectTimeout": 5000,
+        "requestTimeout": 30000,
+        "queryAddr": "127.0.0.1:9966"
+    },
+    "config": {
+        "enabled": true,
+        "dsn": "root:@tcp(127.0.0.1:3306)/falcon_portal?loc=Local&parseTime=true&wait_timeout=604800",
+        "maxIdle": 4
+    },
+    "collector":{
+        "enabled": true,
+        "batch": 200,
+        "concurrent": 10
+    },
+    "sender":{
+        "enabled": true,
+        "connectTimeout": 5000,
+        "requestTimeout": 30000,
+        "transferAddr": "127.0.0.1:6060",
+        "batch": 500,
+        "block": {
+            "enabled": false,
+            "threshold": 32
+        }
+    }
+}

+ 7 - 17
config/query.json

@@ -1,8 +1,8 @@
 {
-    "debug": false,
+    "debug": "false",
     "http": {
-        "enabled": true,
-        "listen": "0.0.0.0:9966"
+        "enabled":  true,
+        "listen":   "0.0.0.0:9966"
     },
     "graph": {
         "connTimeout": 1000,
@@ -11,22 +11,12 @@
         "maxIdle": 32,
         "replicas": 500,
         "cluster": {
-            "graph-00": "10.20.30.40:6070"
+            "graph-00": "127.0.0.1:6070"
         }
     },
     "api": {
-        "name": "api_owl",
-        "token": "fastweb_owl",
-        "event": "https://cdnboss-api.fastweb.com.cn/Monitor/add_zabbix_event",
-        "map": "https://cdnboss-api.fastweb.com.cn/Base/platform/get_ip",
-        "geo": "https://cdnboss-api.fastweb.com.cn/pop/get_area",
-        "query": "http://10.20.30.40:9966",
-        "dashboard": "http://172.17.0.12:8081",
-		"max": 1000
-    },
-    "db": {
-        "addr": "root:password@tcp(172.17.0.3:3306)/graph?charset=utf8&loc=Asia%2FTaipei",
-        "idle": 10,
-        "max": 100
+        "query": "http://127.0.0.1:9966",
+        "dashboard": "http://127.0.0.1:8081",
+        "max": 500
     }
 }

+ 6 - 12
config/sender.json

@@ -1,29 +1,23 @@
 {
-    "debug": false,
+    "debug": true,
     "http": {
         "enabled": true,
         "listen": "0.0.0.0:6066"
     },
     "redis": {
-        "addr": "172.17.0.2:6379",
+        "addr": "127.0.0.1:6379",
         "maxIdle": 5
     },
     "queue": {
         "sms": "/sms",
-        "mail": "/mail",
-        "qq": "/qq",
-        "serverchan": "/serverchan"
+        "mail": "/mail"
     },
     "worker": {
         "sms": 10,
-        "mail": 50,
-        "qq": 10,
-        "serverchan": 10
+        "mail": 50
     },
     "api": {
-        "sms": "http://172.17.0.5:8000/sms",
-        "mail": "http://172.17.0.6:9000/mail",
-        "qq": "http://172.17.0.0:5010",
-        "serverchan": "http://sc.ftqq.com"
+        "sms": "http://11.11.11.11:8000/sms",
+        "mail": "http://11.11.11.11:9000/mail"
     }
 }

+ 13 - 12
config/task.json

@@ -1,26 +1,27 @@
 {
     "debug": false,
     "http": {
-        "enabled": true,
+        "enable": true,
         "listen": "0.0.0.0:8002"
     },
     "index": {
-        "enabled": true,
-        "dsn": "root:password@tcp(172.17.0.3:3306)/graph?loc=Local&parseTime=true",
+        "enable": false,
+        "dsn": "root:root@tcp(127.0.0.1:3306)/graph?loc=Local&parseTime=true",
         "maxIdle": 4,
-        "autoDelete": true,
-        "cluster": {
-            "graph:6071" : "0 0 0 ? * 0-5"
+        "autoDelete": false,
+        "cluster":{
+            "test.hostname01:6071" : "0 0 0 ? * 0-5",
+            "test.hostname02:6071" : "0 30 0 ? * 0-5"
         }
     },
-    "collector":{
-        "enabled": true,
-        "destUrl" : "http://10.20.30.40:1988/v1/push",
+    "collector" : {
+        "enable": true,
+        "destUrl" : "http://127.0.0.1:1988/v1/push",
         "srcUrlFmt" : "http://%s/statistics/all",
         "cluster" : [
-            "transfer,10.20.30.40:6060",
-            "graph,10.20.30.40:6071",
-            "task,10.20.30.40:8002"
+            "transfer,test.hostname:6060",
+            "graph,test.hostname:6071",
+            "task,test.hostname:8001"
         ]
     }
 }

+ 3 - 15
config/transfer.json

@@ -10,7 +10,7 @@
         "listen": "0.0.0.0:8433"
     },
     "socket": {
-        "enabled": false,
+        "enabled": true,
         "listen": "0.0.0.0:4444",
         "timeout": 3600
     },
@@ -23,7 +23,7 @@
         "maxIdle": 32,
         "replicas": 500,
         "cluster": {
-            "judge-00" : "10.20.30.40:6080"
+            "judge-00" : "127.0.0.1:6080"
         }
     },
     "graph": {
@@ -34,11 +34,8 @@
         "maxConns": 32,
         "maxIdle": 32,
         "replicas": 500,
-        "migrating": false,
         "cluster": {
-            "graph-00" : "10.20.30.40:6070"
-        },
-        "clusterMigrating": {
+            "graph-00" : "127.0.0.1:6070"
         }
     },
     "tsdb": {
@@ -50,14 +47,5 @@
         "maxIdle": 32,
         "retry": 3,
         "address": "127.0.0.1:8088"
-    },
-    "influxdb": {
-        "enabled": false,
-        "batch": 100,
-        "connTimeout": 1000,
-        "callTimeout": 5000,
-        "maxConns": 32,
-        "maxIdle": 32,
-        "addr": "root:password@http(10.20.30.40:8086)/owl"
     }
 }