Open-Falcon收藏 、【Open-Falcon】各个组件默认的配置文件 参考 、【Open-Falcon】各个组件默认开启的端口 参考
1./agent/config/cfg.json,字段说明
{ "debug": true, "hostname": "", "ip": "", "plugin": { "enabled": false, "dir": "./plugin", "git": "https://github.com/open-falcon/plugin.git", "logs": "./logs" }, "heartbeat": { "enabled": true, "addr": "0.0.0.0:6030", "interval": 60, "timeout": 1000 }, "transfer": { "enabled": true, "addrs": [ "0.0.0.0:8433" ], "interval": 60, "timeout": 1000 }, "http": { "enabled": true, "listen": ":1988", "backdoor": false }, "collector": { "ifacePrefix": ["eth", "em"], "mountPoint": [] }, "default_tags": { }, "ignore": { "cpu.busy": true, "df.bytes.free": true, "df.bytes.total": true, "df.bytes.used": true, "df.bytes.used.percent": true, "df.inodes.total": true, "df.inodes.free": true, "df.inodes.used": true, "df.inodes.used.percent": true, "mem.memtotal": true, "mem.memused": true, "mem.memused.percent": true, "mem.memfree": true, "mem.swaptotal": true, "mem.swapused": true, "mem.swapfree": true } }
2./transfer/config/cfg.json,字段说明
{ "debug": true, "minStep": 30, "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 }, "judge": { "enabled": true, "batch": 200, "connTimeout": 1000, "callTimeout": 5000, "maxConns": 32, "maxIdle": 32, "replicas": 500, "cluster": { "judge-00" : "0.0.0.0:6080" } }, "graph": { "enabled": true, "batch": 200, "connTimeout": 1000, "callTimeout": 5000, "maxConns": 32, "maxIdle": 32, "replicas": 500, "cluster": { "graph-00" : "0.0.0.0:6070" } }, "tsdb": { "enabled": false, "batch": 200, "connTimeout": 1000, "callTimeout": 5000, "maxConns": 32, "maxIdle": 32, "retry": 3, "address": "127.0.0.1:8088" } }
3./graph/config/cfg.json,字段说明
{ "debug": false, "http": { "enabled": true, "listen": "0.0.0.0:6071" }, "rpc": { "enabled": true, "listen": "0.0.0.0:6070" }, "rrd": { "storage": "./data/6070" }, "db": { "dsn": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_graph?loc=Local&parseTime=true", "maxIdle": 4 }, "callTimeout": 5000, "ioWorkerNum": 64, "migrate": { "enabled": false, "concurrency": 2, "replicas": 500, "cluster": { "graph-00" : "127.0.0.1:6070" } } }
4./api/config/cfg.json,字段说明
{ "log_level": "debug", "db": { "falcon_portal": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_portal?charset=utf8&parseTime=True&loc=Local", "graph": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_graph?charset=utf8&parseTime=True&loc=Local", "uic": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_uic?charset=utf8&parseTime=True&loc=Local", "dashboard": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_dashboard?charset=utf8&parseTime=True&loc=Local", "alarms": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_alarms?charset=utf8&parseTime=True&loc=Local", "db_bug": true }, "graphs": { "cluster": { "graph-00": "127.0.0.1:6070" }, "max_conns": 100, "max_idle": 100, "conn_timeout": 1000, "call_timeout": 5000, "numberOfReplicas": 500 }, "metric_list_file": "./api/data/metric", "web_port": "0.0.0.0:8080", "access_control": true, "signup_disable": false, "salt": "", "skip_auth": false, "default_token": "default-token-used-in-server-side", "gen_doc": false, "gen_doc_path": "doc/module.html" }
5./dashboard/rrd/config.py,字段说明
#-*-coding:utf-8 -*- # Copyright 2017 Xiaomi, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # app config import os LOG_LEVEL = os.environ.get("LOG_LEVEL",'DEBUG') SECRET_KEY = os.environ.get("SECRET_KEY","secret-key") PERMANENT_SESSION_LIFETIME = os.environ.get("PERMANENT_SESSION_LIFETIME",3600 * 24 * 30) SITE_COOKIE = os.environ.get("SITE_COOKIE","open-falcon-ck") # Falcon+ API API_ADDR = os.environ.get("API_ADDR","http://127.0.0.1:8080/api/v1") API_USER = os.environ.get("API_USER","admin") # 好像没用上 API_PASS = os.environ.get("API_PASS","password") # 好像没用上 # portal database # TODO: read from api instead of db PORTAL_DB_HOST = os.environ.get("PORTAL_DB_HOST","127.0.0.1") PORTAL_DB_PORT = int(os.environ.get("PORTAL_DB_PORT",53306)) PORTAL_DB_USER = os.environ.get("PORTAL_DB_USER","user_falcon") PORTAL_DB_PASS = os.environ.get("PORTAL_DB_PASS","VPxdZUq653dJHTVT") PORTAL_DB_NAME = os.environ.get("PORTAL_DB_NAME","falcon_portal") # alarm database # TODO: read from api instead of db ALARM_DB_HOST = os.environ.get("ALARM_DB_HOST","127.0.0.1") ALARM_DB_PORT = int(os.environ.get("ALARM_DB_PORT",53306)) ALARM_DB_USER = os.environ.get("ALARM_DB_USER","user_falcon") ALARM_DB_PASS = os.environ.get("ALARM_DB_PASS","VPxdZUq653dJHTVT") ALARM_DB_NAME = os.environ.get("ALARM_DB_NAME","falcon_alarms") # ldap config LDAP_ENABLED = os.environ.get("LDAP_ENABLED",False) LDAP_SERVER = os.environ.get("LDAP_SERVER","ldap.forumsys.com:389") LDAP_BASE_DN = os.environ.get("LDAP_BASE_DN","dc=example,dc=com") LDAP_BINDDN = os.environ.get("LDAP_BINDDN","cn=manager,dc=example,dc=org") LDAP_BIND_PASS = os.environ.get("LDAP_BIND_PASS","password") LDAP_SEARCH_FMT = os.environ.get("LDAP_SEARCH_FMT","uid=%s") LDAP_ATTRS = ["cn","mail","telephoneNumber"] LDAP_TLS_START_TLS = False LDAP_TLS_CACERTDIR = "" LDAP_TLS_CACERTFILE = "/etc/openldap/certs/ca.crt" LDAP_TLS_CERTFILE = "" LDAP_TLS_KEYFILE = "" LDAP_TLS_REQUIRE_CERT = True LDAP_TLS_CIPHER_SUITE = "" # i18n BABEL_DEFAULT_LOCALE = 'zh_CN' BABEL_DEFAULT_TIMEZONE = 'Asia/Shanghai' # available translations LANGUAGES = { 'en': 'English', 'zh_CN': 'Chinese-Simplified', } # portal site config MAINTAINERS = ['root'] CONTACT = 'root@open-falcon.com' DEBUG = True try: from rrd.local_config import * except: print "[warning] no local config file"
6./hbs/config/cfg.json,字段说明
{ "debug": true, "database": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_portal?loc=Local&parseTime=true", "hosts": "", "maxConns": 20, "maxIdle": 15, "listen": ":6030", "trustable": [""], "http": { "enabled": true, "listen": "0.0.0.0:6031" } }
7./judge/config/cfg.json,字段说明
{ "debug": true, "debugHost": "nil", "remain": 11, "http": { "enabled": true, "listen": "0.0.0.0:6081" }, "rpc": { "enabled": true, "listen": "0.0.0.0:6080" }, "hbs": { "servers": ["0.0.0.0:6030"], "timeout": 300, "interval": 60 }, "alarm": { "enabled": true, "minInterval": 300, "queuePattern": "event:p%v", "redis": { "dsn": "127.0.0.1:6379", "maxIdle": 5, "connTimeout": 5000, "readTimeout": 5000, "writeTimeout": 5000 } } }
8./alarm/config/cfg.json,字段说明
{ "log_level": "debug", "http": { "enabled": true, "listen": "0.0.0.0:9912" }, "redis": { "addr": "127.0.0.1:6379", "maxIdle": 5, "highQueues": [ "event:p0", "event:p1", "event:p2" ], "lowQueues": [ "event:p3", "event:p4", "event:p5", "event:p6" ], "userIMQueue": "/queue/user/im", "userSmsQueue": "/queue/user/sms", "userMailQueue": "/queue/user/mail" }, "api": { "im": "http://127.0.0.1:10086/wechat", "sms": "http://127.0.0.1:10086/sms", "mail": "http://127.0.0.1:10086/mail", "dashboard": "http://127.0.0.1:8081", "plus_api":"http://127.0.0.1:8080", "plus_api_token": "default-token-used-in-server-side" }, "falcon_portal": { "addr": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_alarms?charset=utf8&loc=Local", "idle": 10, "max": 100 }, "worker": { "im": 10, "sms": 10, "mail": 50 }, "housekeeper": { "event_retention_days": 7, "event_delete_batch": 100 } }
9./nodata/config/cfg.json,字段说明
{ "debug": true, "http": { "enabled": true, "listen": "0.0.0.0:6090" }, "plus_api":{ "connectTimeout": 500, "requestTimeout": 2000, "addr": "http://127.0.0.1:8080", "token": "default-token-used-in-server-side" }, "config": { "enabled": true, "dsn": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_portal?loc=Local&parseTime=true&wait_timeout=604800", "maxIdle": 4 }, "collector":{ "enabled": true, "batch": 200, "concurrent": 10 }, "sender":{ "enabled": true, "connectTimeout": 500, "requestTimeout": 2000, "transferAddr": "0.0.0.0:6060", "batch": 500 } }
10./aggregator/config/cfg.json,字段说明
{ "debug": true, "http": { "enabled": true, "listen": "0.0.0.0:6055" }, "database": { "addr": "user_falcon:VPxdZUq653dJHTVT@tcp(127.0.0.1:53306)/falcon_portal?loc=Local&parseTime=true", "idle": 10, "ids": [1, -1], "interval": 55 }, "api": { "connect_timeout": 500, "request_timeout": 2000, "plus_api": "http://127.0.0.1:8080", "plus_api_token": "default-token-used-in-server-side", "push_api": "http://127.0.0.1:1988/v1/push" } }