firemail
标题: Open-Falcon [打印本页]
作者: java 时间: 2018-6-1 17:13
标题: Open-Falcon
Open-Falcon
小米开发的,小米、金山云、美团、京东金融等公司在用。
Open-Falcon编写的整个脑洞历程:http://mp.weixin.qq.com/s?__biz=MjM5OTcxMzE0MQ==&mid=400225178&idx=1&sn=c98609a9b66f84549e41cd421b4df74d
小米开源监控系统OpenFalcon应对高并发7种手段:http://h2ex.com/894
官网:
http://open-falcon.org/
http://book.open-falcon.org/zh/index.html
作者: java 时间: 2018-6-1 17:14
http://open-falcon.org/
作者: java 时间: 2018-6-21 11:17
本帖最后由 java 于 2018-6-21 11:45 编辑
V0.2版下载安装:
http://book.open-falcon.org/zh_0_2/quick_install/prepare.html
下载官方编译好的二进制版本(x86 64位平台)。 或 open-falcon-v0.2.1.tar.gz
解压到相应目录 mkdir open-falcon-v0.2.1 先创建目录
再解压进此目录
tar zxvf ./open-falcon-v0.2.1.tar.gz -C ./open-falcon-v0.2.1/
---------------布置agent-------------
进入open-falcon-v0.2.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": "192.168.1.1:6030",
- "interval": 60,
- "timeout": 1000
- },
- "transfer": {
- "enabled": true,
- "addrs": [
- "192.168.1.1:8433"
- ],
- "interval": 60,
- "timeout": 1000
- },
- "http": {
- "enabled": true,
- "listen": ":1988",
- "backdoor": false
- },
- "collector": {
- "ifacePrefix": ["eth", "em"],
- "mountPoint": []
- },
- "default_tags": {
- },
- "ignore": {
- "cpu.busy": true,
- "cpu.guest": true,
- "cpu.idle": true,
- "cpu.iowait": true,
- "cpu.irq": true,
- "cpu.nice": true,
- "cpu.softirq": true,
- "cpu.steal": true,
- "cpu.switches": true,
- "cpu.system": true,
- "cpu.user": 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,
- "df.bytes.free.percent/fstype=ext4,mount=/": true,
- "df.bytes.free.percent/fstype=ext4,mount=/home": true,
- "df.inodes.free.percent/fstype=ext4,mount=/": true,
- "df.inodes.free.percent/fstype=ext4,mount=/home": true,
- "df.statistics.total": true,
- "df.statistics.used": true,
- "df.statistics.used.percent": true,
- "disk.io.avgqu-sz/device=sda": true,
- "disk.io.avgrq_sz/device=sda": true,
- "disk.io.await/device=sda": true,
- "disk.io.ios_in_progress/device=sda": true,
- "disk.io.msec_read/device=sda": true,
- "disk.io.msec_total/device=sda": true,
- "disk.io.msec_weighted_total/device=sda": true,
- "disk.io.msec_write/device=sda": true,
- "disk.io.read_bytes/device=sda": true,
- "disk.io.read_merged/device=sda": true,
- "disk.io.read_requests/device=sda": true,
- "disk.io.read_sectors/device=sda": true,
- "disk.io.svctm/device=sda": true,
- "disk.io.util/device=sda": true,
- "disk.io.write_bytes/device=sda": true,
- "disk.io.write_merged/device=sda": true,
- "disk.io.write_requests/device=sda": true,
- "disk.io.write_sectors/device=sda": true,
- "kernel.files.allocated": true,
- "kernel.files.left": true,
- "kernel.maxfiles": true,
- "kernel.maxproc": true,
- "load.15min": true,
- "load.1min": true,
- "load.5min": true,
- "mem.memfree.percent": true,
- "mem.swapfree.percent": true,
- "mem.swapused.percent": true,
- "snmp.Udp.IgnoredMulti": true,
- "snmp.Udp.InCsumErrors": true,
- "snmp.Udp.InDatagrams": true,
- "mem.memtotal": true,
- "mem.memused": true,
- "mem.memused.percent": true,
- "mem.memfree": true,
- "mem.swaptotal": true,
- "mem.swapused": true,
- "mem.swapfree": true
- }
- }
复制代码
启动 agenthttp://book.open-falcon.org/zh_0_2/quick_install/backend.html
创建工作目录
export FALCON_HOME=/data/calendar/monitor
export WORKSPACE=$FALCON_HOME/open-falcon
mkdir -p $WORKSPACE
解压二进制包
tar -xzvf open-falcon-v0.2.0.tar.gz -C $WORKSPACE
启动 agent
cd $WORKSPACE
# ./open-falcon [start|stop|restart|check|monitor|reload] module
./open-falcon start agent
./open-falcon check agent
欢迎光临 firemail (http://firemail.wang:8088/) |
Powered by Discuz! X3 |