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 ...
随机推荐
- C#设计模式--命令模式(学习Learning hard C#设计模式笔记)
原文地址http://www.cnblogs.com/zhili/p/CommandPattern.html class Program { static void Main(string[] arg ...
- Bash:常用命令工具-tr命令
tr命令可以用来做简单的字符替换与删除,常用的有-d, -s选项.它的替换与删除是按单个字符来的 假设有以下文本: Read from the file words.txt and output th ...
- jQuery基础(Ajax,load(),getJSON(),getScript(),post(),ajax(),同步/异步请求数据)
1.使用load()方法异步请求数据 使用load()方法通过Ajax请求加载服务器中的数据,并把返回的数据放置到指定的元素中,它的调用格式为: load(url,[data],[callba ...
- Spring Boot—03REST请求
package com.smartmap.sample.ch1.controller.rest; import java.util.List; import org.apache.commons.lo ...
- CentOS7系列--3.2CentOS7中配置iSCSI服务
CentOS7配置iSCSI服务 在网络上的存贮服务为iSCSI Target,而连接到iSCSI Target服务的叫iSCSI Initiator 1. 直接配置iSCSI Target服务 1. ...
- flutter控件之CheckBox
import 'package:flutter/material.dart'; class LearnCheckBox extends StatefulWidget{ @override State& ...
- 使用ember-cli脚手架快速构建项目
步骤: 安装Ember. 创建一个新应用程序. 定义路由. 编写一个UI组件. 构建您的应用程序以部署到生产环境. 安装Ember 您可以使用npm(Node.js包管理器,你需要安装node.js) ...
- Linux内存管理(text、rodata、data、bss、stack&heap)
一.各内存区段的介绍 系统内的程序分为程序段和数据段,具体又可细分为一下几个部分: (1)text段-代码段 text段存放程序代码,运行前就已经确定(编译时确定),通常为只读,可以直接在ROM或Fl ...
- 转:在决定使用ClickOnce发布你的软件前,应该知道的一些事情(一些常见问题解决方法)
1,无法有效避免非法的下载 使用ClickOnce部署,你的软件的更新版可以发布到Web服务器上,当用户从开始菜单启动软件时,ClickOnce自动到指定的URL去检测是否存在新版本,并且从这个地址下 ...
- UNIX高级环境编程(5)Files And Directories - 文件相关时间,目录文件相关操作
1 File Times 每个文件会维护三个时间字段,每个字段代表的时间都不同.如下表所示: 字段说明: st_mtim(the modification time)记录了文件内容最后一次被修改的时 ...