hbs 配置文件

{
"debug": true,
"database": "openfalcon:123456@tcp(172.16.230.188:3306)/falcon_portal?loc=Local&parseTime=true",
"hosts": "",
"maxIdle": ,
"listen": ":6030",
"trustable": [""],
"http": {
"enabled": true,
"listen": "0.0.0.0:6031"
}
}
transfer配置文件

{
"debug": true,
"minStep": ,
"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":
},
"judge": {
"enabled": true,
"batch": ,
"connTimeout": ,
"callTimeout": ,
"maxConns": ,
"maxIdle": ,
"replicas": ,
"cluster": {
"judge-00" : "172.16.230.183:6080",
"judge-01" : "172.16.230.184:6080"
}
},
"graph": {
"enabled": true,
"batch": ,
"connTimeout": ,
"callTimeout": ,
"maxConns": ,
"maxIdle": ,
"replicas": ,
"cluster": {
"graph-00" : "172.16.230.185:6070",
"graph-01" : "172.16.230.186:6070"
}
},
"tsdb": {
"enabled": false,
"batch": ,
"connTimeout": ,
"callTimeout": ,
"maxConns": ,
"maxIdle": ,
"retry": ,
"address": "127.0.0.1:8088"
}
}
judge配置文件

{
"debug": true,
"debugHost": "nil",
"remain": ,
"http": {
"enabled": true,
"listen": "0.0.0.0:6081"
},
"rpc": {
"enabled": true,
"listen": "0.0.0.0:6080"
},
"hbs": {
"servers": ["172.16.230.180:6030"],
"timeout": ,
"interval":
},
"alarm": {
"enabled": true,
"minInterval": ,
"queuePattern": "event:p%v",
"redis": {
"dsn": "172.16.230.187:6379",
"maxIdle": ,
"connTimeout": ,
"readTimeout": ,
"writeTimeout":
}
}
}
graph 配置文件

{
"debug": false,
"http": {
"enabled": true,
"listen": "0.0.0.0:6071"
},
"rpc": {
"enabled": true,
"listen": "0.0.0.0:6070"
},
"rrd": {
"storage": "/data/monitor/graph/data"
},
"db": {
"dsn": "openfalcon:123456@tcp(172.16.230.188:3306)/graph?loc=Local&parseTime=true",
"maxIdle":
},
"callTimeout": ,
"migrate": {
"enabled": false,
"concurrency": ,
"replicas": ,
"cluster": {
"graph-00" : "172.16.230.185:6070",
"graph-01" : "172.16.230.185:6070"
}
}
}
api 配置文件

{
"log_level": "debug",
"db": {
"faclon_portal": "openfalcon:123456@tcp(172.16.230.188:3306)/falcon_portal?charset=utf8&parseTime=True&loc=Local",
"graph": "openfalcon:123456@tcp(172.16.230.188:3306)/graph?charset=utf8&parseTime=True&loc=Local",
"uic": "openfalcon:123456@tcp(172.16.230.188:3306)/uic?charset=utf8&parseTime=True&loc=Local",
"dashboard": "openfalcon:123456@tcp(172.16.230.188:3306)/dashboard?charset=utf8&parseTime=True&loc=Local",
"alarms": "openfalcon:123456@tcp(172.16.230.188:3306)/alarms?charset=utf8&parseTime=True&loc=Local",
"db_bug": true
},
"graphs": {
"cluster": {
"graph-00": "172.16.230.185:6070",
"graph-01": "172.16.230.186:6070"
},
"max_conns": ,
"max_idle": ,
"conn_timeout": ,
"call_timeout": ,
"numberOfReplicas":
},
"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"
}
~
dashboard配置文件

#-*-coding:utf8-*-
# 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://172.16.230.189:8080/api/v1") # portal database
# TODO: read from api instead of db
PORTAL_DB_HOST = os.environ.get("PORTAL_DB_HOST","172.16.230.188")
PORTAL_DB_PORT = int(os.environ.get("PORTAL_DB_PORT",3306))
PORTAL_DB_USER = os.environ.get("PORTAL_DB_USER","openfalcon")
PORTAL_DB_PASS = os.environ.get("PORTAL_DB_PASS","123456")
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","172.16.230.188")
ALARM_DB_PORT = int(os.environ.get("ALARM_DB_PORT",3306))
ALARM_DB_USER = os.environ.get("ALARM_DB_USER","openfalcon")
ALARM_DB_PASS = os.environ.get("ALARM_DB_PASS","123456")
ALARM_DB_NAME = os.environ.get("ALARM_DB_NAME","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_FMT = os.environ.get("LDAP_BINDDN_FMT","uid=%s,dc=example,dc=com")
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'
# aviliable translations
LANGUAGES = {
'en': 'English',
'zh_CN': 'Chinese-Simplified',
} # portal site config
MAINTAINERS = ['root']
CONTACT = 'root@open-falcon.org' try:
from rrd.local_config import *
except:
print "[warning] no local config file"

  

172.16.230.191 包含了 alarm send mail_provider   nodata  task  aggregator agent  chat

[root@openfalcon_alarm_sender config]# vim cfg.json

{
"log_level": "debug",
"http": {
"enabled": true,
"listen": "0.0.0.0:9912"
},
"http": {
"enabled": true,
"listen": "0.0.0.0:9912"
},
"redis": {
"addr": "172.16.230.187:6379",
"maxIdle": ,
"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://172.16.230.191:4567/send",
"sms": "http://127.0.0.1:10086/sms",
"mail": "http://172.16.230.191:4000/sender/mail",
"dashboard": "http://172.16.230.190:80",
"plus_api":"http://172.16.230.189:8080",
"plus_api_token": "default-token-used-in-server-side"
},
"falcon_portal": {
"addr": "openfalcon:123456@tcp(172.16.230.188:3306)/alarms?charset=utf8&loc=Asia%2FChongqing",
"idle": ,
"max":
},
"worker": {
"im": ,
"sms": ,
"mail":
},
"housekeeper": {
"event_retention_days": ,
"event_delete_batch":
}
}

sender配置文件,和0.1 相同

sender配置文件

[root@openfalcon_alarm_sender monitor]# cat sender/cfg.json

{
"debug": true,
"http": {
"enabled": true,
"listen": "0.0.0.0:6066"
},
"redis": {
"addr": "172.16.230.187:6379",
"maxIdle":
},
"queue": {
"im": "/im",
"mail": "/mail"
},
"worker": {
"im": ,
"mail":
},
"api": {
"im": "http://172.16.230.191:4567/send",
"mail": "http://172.16.230.191:4000/sender/mail"
}
}

mail_provider 发送邮件功能,和0.1 相同

[root@openfalcon_alarm_sender monitor]# cat mail_provider/cfg.json
{
"debug": true,
"http": {
"listen": "0.0.0.0:4000",
"token": ""
},
"smtp": {
"addr": "smtp.163.com:25",
"username": "fengjian1585@163.com",
"password": "",
"from": "fengjian1585@163.com"
}
}

nodata 用于检查未上报的报警,比如agent挂了,nodata 会生成一条模拟数据,用户配置相关报警策略

[root@openfalcon_alarm_sender monitor]# cat nodata/config/cfg.json
{
"debug": true,
"http": {
"enabled": true,
"listen": "0.0.0.0:6090"
},
"plus_api":{
"connectTimeout": ,
"requestTimeout": ,
"addr": "http://172.16.230.189:8080",
"token": "default-token-used-in-server-side"
},
"config": {
"enabled": true,
"dsn": "openfalcon:123456@tcp(172.16.230.188:3306)/falcon_portal?loc=Local&parseTime=true&wait_timeout=604800",
"maxIdle":
},
"collector":{
"enabled": true,
"batch": ,
"concurrent":
},
"sender":{
"enabled": true,
"connectTimeout": ,
"requestTimeout": ,
"transferAddr": "172.16.230.181:6060",
"transferAddr": "172.16.230.182:6060",
"batch":
}
}

task配置文件更新图表的索引,请出垃圾索引

[root@openfalcon_alarm_sender monitor]# cat task/cfg.json 

{
"debug": false,
"http": {
"enable": true,
"listen": "0.0.0.0:8002"
},
"index": {
"enable": true,
"dsn": "openfalcon:senyint.rh@tcp(172.16.230.188:3306)/graph?loc=Local&parseTime=true",
"maxIdle": ,
"autoDelete": false,
"cluster":{
"openfalcon_judge1:6071" : "0 0 0 ? * 0-5",
"openfalcon_judge2:6071" : "0 30 0 ? * 0-5"
}
},
"collector" : {
"enable": false,
"destUrl" : "http://127.0.0.1:1988/v1/push",
"srcUrlFmt" : "http://%s/statistics/all",
"cluster" : [
"transfer1,openfalcon_transfer1:6060",
"transfer2,openfalcon_transfer2:6060",
"graph1,openfalcon_graph1:6071",
"graph2,openfalcon_graph2:6071",
"task,openfalcon_alarm_sender:8002"
]
}
}

aggregator 聚合报警

[root@openfalcon_alarm_sender aggregator]# cat config/cfg.json
{
"debug": true,
"http": {
"enabled": true,
"listen": "0.0.0.0:6055"
},
"database": {
"addr": "openfalcon:123456@tcp(172.16.230.188:3306)/falcon_portal?loc=Local&parseTime=true",
"idle": ,
"ids": [, -],
"interval":
},
"api": {
"connect_timeout": ,
"request_timeout": ,
"plus_api": "http://172.16.230.189:8080",
"plus_api_token": "default-token-used-in-server-side",
"push_api": "http://127.0.0.1:1988/v1/push"
}
}

agent配置文件

[root@openfalcon_alarm_sender monitor]# cat agent/config/cfg.json
{
"debug": true,
"hostname": "production_bj_172.16.230.191_monitor_aggregator",
"ip": "",
"plugin": {
"enabled": false,
"dir": "./plugin",
"git": "https://github.com/open-falcon/plugin.git",
"logs": "./logs"
},
"heartbeat": {
"enabled": true,
"addr": "172.16.230.180:6030",
"interval": ,
"timeout":
},
"transfer": {
"enabled": true,
"addrs": [
"172.16.230.181:8433",
"172.16.230.182:8433"
],
"interval": ,
"timeout":
},
"http": {
"enabled": true,
"listen": ":1988",
"backdoor": false
},
"collector": {
"ifacePrefix": ["eth", "em","ens"],
"mountPoint": []
},
"default_tags": {
},
"ignore": {
"cpu.busy": true,
"cpu.guest": true,
"cpu.irq": true,
"cpu.nice": true,
"cpu.softirq": true,
"cpu.steal": true,
"cpu.switches": true,
"cpu.system": true,
"cpu.user": true,
"net.if.in.compressed": true,
"net.if.in.fifo.errs": true,
"net.if.in.frame.errs": true,
"net.if.in.multicast": true,
"net.if.out.carrier.errs": true,
"net.if.out.collisions": true,
"net.if.out.compressed": true,
"net.if.out.fifo.errs": true,
"net.if.total.dropped": true,
"net.if.total.errors": true,
"df.bytes.free": true,
"df.bytes.total": true,
"df.bytes.used": 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.memfree": true,
"mem.swaptotal": true,
"mem.swapused": true,
"mem.swapfree": true
}
}

openfalcon-0.2 配置的更多相关文章

  1. centos 7 部署 open-falcon 0.2.0

    =============================================== 2017/12/06_第2次修改                       ccb_warlock 更 ...

  2. centos7 部署 open-falcon 0.2.0

    =============================================== 2019/4/29_第3次修改                       ccb_warlock 更新 ...

  3. CentOS 7.0安装配置Vsftp服务器

    一.配置防火墙,开启FTP服务器需要的端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop fi ...

  4. Solr4.0 如何配置使用UUID自动生成id值

    原文链接http://blog.csdn.net/keepthinking_/article/details/8501058#comments 最近学习了Lucene,随便也学习了Solr,Solr规 ...

  5. 网站开启https后加密协议始终是TLS1.0如何配置成TLS1.2?

    p { margin-bottom: 0.1in; line-height: 120% } 网站开启https后加密协议始终是TLS1.0如何配置成TLS1.2? 要在服务器上开启 TLSv1.,通常 ...

  6. 驱动开发学习笔记. 0.01 配置arm-linux-gcc 交叉编译器

    驱动开发读书笔记. 0.01 配置arm-linux-gcc 交叉编译器 什么是gcc: 就像windows上的VS 工具,用来编译代码,具体请自己搜索相关资料 怎么用PC机的gcc 和 arm-li ...

  7. RHEL 7.0 本地配置yum源

    RHEL 7.0 本地配置yum源  yum简介  yum = Yellow dog Updater, Modified 主要功能是更方便的添加/删除/更新RPM包. 它能自动解决包的倚赖性问题. 它 ...

  8. JSP的那些事儿(2)---- DWR2.0 的配置和使用

    JSP的那些事儿(2)----DWR2.0 的配置和使用 分类: Web开发 JAVA 2009-04-23 15:43 999人阅读 评论(0) 收藏 举报 jspdwrjavascriptserv ...

  9. CentOS 7.0系统安装配置LAMP服务器(Apache+PHP+MariaDB)

    CentOS 7.0接触到的用户是比较少的,今天看了站长写了一篇关于centos7中安装配置LAMP服务器的教程,下面我把文章稍加整理一下转给大家学习交流,希望例子能给各位带来帮助哦.   cento ...

  10. CentOS 7.0安装配置LAMP服务器(Apache+PHP+MariaDB)

    CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop firewalld.service #停止fir ...

随机推荐

  1. C# SpinWait

    其实SpinWait的code 非常简单,以前看过很多遍,但是从来都没有整理过,整理也是再次学习吧. 我们先看看SpinWait的一些评论或者注意点吧:如果等待某个条件满足需要的时间很短,而且不希望发 ...

  2. (利用DOM)在新打开的页面点击关闭当前浏览器窗口

    1.在开发过程中我们前端的用户体验中有时候会要求点击一个按钮,关闭当前浏览器窗口.用html DOM就可做到. 2.注意:本次写法要求在新窗口中关闭. target="_blank" ...

  3. Yii中文乱码 解决

    需要将config/main.php改成utf-8编码即可

  4. Flutter的教程:ListView

    本文学习一下列表widget,是最常见的需求 在Flutter中,用ListView来显示列表项,支持垂直和水平方向展示,通过一个属性我们就可以控制其方向 1.水平的列表 2.垂直的列表 3.数据量非 ...

  5. String 类型

    一.不可变 一个 String 类型的值是不可以改变的,比如,String china = "中国",“中国”这个字符串从它创建开始直到销毁都是不可改变的. 二.字符串常量池 字面 ...

  6. Pig UDF 用户自定义函数

    注册UDF do.pig的内容如下: register /xx/yy.jar data = load 'data'; result = foreach data generate aa.bb.Uppe ...

  7. Oracle Sequence Cache 参数说明

    转自 http://blog.csdn.net/tianlesoftware/article/details/5995051 之前整理的一篇文章: ORACLE SEQUENCE 介绍 http:// ...

  8. Ubuntu 安装python

    1. wget http://mirrors.sohu.com/python/3.6.0/Python-3.6.0.tar.xz wget https://www.python.org/ftp/pyt ...

  9. springmvc源码解析-初始化

    1.      概述 对于Web开发者,MVC模型是大家再熟悉不过的了,SpringMVC中,满足条件的请求进入到负责请求分发的DispatcherServlet,DispatcherServlet根 ...

  10. clr_zmq Vs2010版本

    .net的消息队列很方便的一个库. 在github上的主版本虽然也支持fw4.0,但是必须使用vs2012以上进行编译. 这样就依赖vcredist运行时. 因为win7 sp1以下版本,无法安装vc ...