openfalcon-0.2 配置


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 配置的更多相关文章
- centos 7 部署 open-falcon 0.2.0
=============================================== 2017/12/06_第2次修改 ccb_warlock 更 ...
- centos7 部署 open-falcon 0.2.0
=============================================== 2019/4/29_第3次修改 ccb_warlock 更新 ...
- CentOS 7.0安装配置Vsftp服务器
一.配置防火墙,开启FTP服务器需要的端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop fi ...
- Solr4.0 如何配置使用UUID自动生成id值
原文链接http://blog.csdn.net/keepthinking_/article/details/8501058#comments 最近学习了Lucene,随便也学习了Solr,Solr规 ...
- 网站开启https后加密协议始终是TLS1.0如何配置成TLS1.2?
p { margin-bottom: 0.1in; line-height: 120% } 网站开启https后加密协议始终是TLS1.0如何配置成TLS1.2? 要在服务器上开启 TLSv1.,通常 ...
- 驱动开发学习笔记. 0.01 配置arm-linux-gcc 交叉编译器
驱动开发读书笔记. 0.01 配置arm-linux-gcc 交叉编译器 什么是gcc: 就像windows上的VS 工具,用来编译代码,具体请自己搜索相关资料 怎么用PC机的gcc 和 arm-li ...
- RHEL 7.0 本地配置yum源
RHEL 7.0 本地配置yum源 yum简介 yum = Yellow dog Updater, Modified 主要功能是更方便的添加/删除/更新RPM包. 它能自动解决包的倚赖性问题. 它 ...
- JSP的那些事儿(2)---- DWR2.0 的配置和使用
JSP的那些事儿(2)----DWR2.0 的配置和使用 分类: Web开发 JAVA 2009-04-23 15:43 999人阅读 评论(0) 收藏 举报 jspdwrjavascriptserv ...
- CentOS 7.0系统安装配置LAMP服务器(Apache+PHP+MariaDB)
CentOS 7.0接触到的用户是比较少的,今天看了站长写了一篇关于centos7中安装配置LAMP服务器的教程,下面我把文章稍加整理一下转给大家学习交流,希望例子能给各位带来帮助哦. cento ...
- CentOS 7.0安装配置LAMP服务器(Apache+PHP+MariaDB)
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop firewalld.service #停止fir ...
随机推荐
- 【转】JUC下面线程池介绍
介绍new Thread的弊端及Java四种线程池的使用,对Android同样适用.本文是基础篇,后面会分享下线程池一些高级功能. 1.new Thread的弊端执行一个异步任务你还只是如下new T ...
- Linux下socket通信和epoll
上一篇博客用多线程实现服务端和多个客户端的通信,但是在实际应用中如果服务端有高并发的需求,多线程并不是一个好选择. 实现高并发的一种方法是IO多路复用,也就是select,poll,epoll等等. ...
- 用python写桌面天气预报,自己的学习曲线。
自从接触python,就被他优雅而简洁的代码所吸引. 举个例子: arr , , , , , , , , , , , , , ] ] 如果用其他语言来写的吗,不会这么简洁,美观. python还有 ...
- 视区相关单位vw, vh..简介以及可实际应用场景——张鑫旭
一.N多的唠哩唠叨 CSS3中一些新的单位早在去年春暖花开的时候就介绍了,参见:CSS长度值及时间.频率.角度单位.显然,其中就提到了本文要感叹的单位vw, vh,见下图: 不过“我看见你”和“我触碰 ...
- vue项目中引入bootstrap
(1)引入Jquery文件,需要在bootstrap.min.js 之前引入. 1.npm install jquery --save-dev 2. plugins: [ new webpack.Pr ...
- Django基础六之ORM中的锁和事务
一 锁 行级锁 select_for_update(nowait=False, skip_locked=False) #注意必须用在事务里面,至于如何开启事务,我们看下面的事务一节. 返回一个锁住行直 ...
- less之旅
在遇到less之前,一直和css交往,当less出现在我码农生涯的时候,被她给深深地吸引.从此,less成了自己码农生活里面的一房,css退居二房!那么,less到底有什么魅力让我如此迷上她呢? le ...
- 当div元素内的内容超出其宽度时,自动隐藏超出的内容
word-break:keep-all;/* 不换行 */ white-space:nowrap;/* 不换行 */ overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */ te ...
- dojox.grid.DataGrid显示数据的方法(转)
第一种:数据存在本地或者已经写死的JSON对象中,不需要跟服务端进行数据传输 <%@ page language="java" contentType="text/ ...
- 网络I/O模型--05多路复用I/O
多路复用I/O模型在应用层工作效率比我们俗称的 BIO 模型快的本质原因是,前者不再使用操作系统级别的“同步 I/O”模型 . 在 Linux 操作系统环境下, 多路复用 I/O 模型就是技术人员通常 ...