Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2735|回复: 2
打印 上一主题 下一主题

Open-Falcon

[复制链接]

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
跳转到指定楼层
楼主
发表于 2018-6-1 17:13:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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



回复

使用道具 举报

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
沙发
 楼主| 发表于 2018-6-1 17:14:13 | 只看该作者
回复 支持 反对

使用道具 举报

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
板凳
 楼主| 发表于 2018-6-21 11:17:57 | 只看该作者
本帖最后由 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


  1. {
  2.     "debug": true,
  3.     "hostname": "",
  4.     "ip": "",
  5.     "plugin": {
  6.         "enabled": false,
  7.         "dir": "./plugin",
  8.         "git": "https://github.com/open-falcon/plugin.git",
  9.         "logs": "./logs"
  10.     },
  11.     "heartbeat": {
  12.         "enabled": true,
  13.         "addr": "192.168.1.1:6030",
  14.         "interval": 60,
  15.         "timeout": 1000
  16.     },
  17.     "transfer": {
  18.         "enabled": true,
  19.         "addrs": [
  20.             "192.168.1.1:8433"
  21.         ],
  22.         "interval": 60,
  23.         "timeout": 1000
  24.     },
  25.     "http": {
  26.         "enabled": true,
  27.         "listen": ":1988",
  28.         "backdoor": false
  29.     },
  30.     "collector": {
  31.         "ifacePrefix": ["eth", "em"],
  32.         "mountPoint": []
  33.     },
  34.     "default_tags": {
  35.     },
  36.     "ignore": {
  37.       "cpu.busy": true,
  38.       "cpu.guest": true,
  39.       "cpu.idle": true,
  40.       "cpu.iowait": true,
  41.       "cpu.irq": true,
  42.       "cpu.nice": true,
  43.       "cpu.softirq": true,
  44.       "cpu.steal": true,
  45.       "cpu.switches": true,
  46.       "cpu.system": true,
  47.       "cpu.user": true,
  48.       "df.bytes.free": true,
  49.       "df.bytes.total": true,
  50.       "df.bytes.used": true,
  51.       "df.bytes.used.percent": true,
  52.       "df.inodes.total": true,
  53.       "df.inodes.free": true,
  54.       "df.inodes.used": true,
  55.       "df.inodes.used.percent": true,
  56.       "df.bytes.free.percent/fstype=ext4,mount=/": true,
  57.       "df.bytes.free.percent/fstype=ext4,mount=/home": true,
  58.       "df.inodes.free.percent/fstype=ext4,mount=/": true,
  59.       "df.inodes.free.percent/fstype=ext4,mount=/home": true,
  60.       "df.statistics.total": true,
  61.       "df.statistics.used": true,
  62.       "df.statistics.used.percent": true,
  63.       "disk.io.avgqu-sz/device=sda": true,
  64.       "disk.io.avgrq_sz/device=sda": true,
  65.       "disk.io.await/device=sda": true,
  66.       "disk.io.ios_in_progress/device=sda": true,
  67.       "disk.io.msec_read/device=sda": true,
  68.       "disk.io.msec_total/device=sda": true,
  69.       "disk.io.msec_weighted_total/device=sda": true,
  70.       "disk.io.msec_write/device=sda": true,
  71.       "disk.io.read_bytes/device=sda": true,
  72.       "disk.io.read_merged/device=sda": true,
  73.       "disk.io.read_requests/device=sda": true,
  74.       "disk.io.read_sectors/device=sda": true,
  75.       "disk.io.svctm/device=sda": true,
  76.       "disk.io.util/device=sda": true,
  77.       "disk.io.write_bytes/device=sda": true,
  78.       "disk.io.write_merged/device=sda": true,
  79.       "disk.io.write_requests/device=sda": true,
  80.       "disk.io.write_sectors/device=sda": true,
  81.       "kernel.files.allocated": true,
  82.       "kernel.files.left": true,
  83.       "kernel.maxfiles": true,
  84.       "kernel.maxproc": true,
  85.       "load.15min": true,
  86.       "load.1min": true,
  87.       "load.5min": true,
  88.       "mem.memfree.percent": true,
  89.       "mem.swapfree.percent": true,
  90.       "mem.swapused.percent": true,
  91.       "snmp.Udp.IgnoredMulti": true,
  92.       "snmp.Udp.InCsumErrors": true,
  93.       "snmp.Udp.InDatagrams": true,
  94.       "mem.memtotal": true,
  95.       "mem.memused": true,
  96.       "mem.memused.percent": true,
  97.       "mem.memfree": true,
  98.       "mem.swaptotal": true,
  99.       "mem.swapused": true,
  100.       "mem.swapfree": true
  101.     }
  102. }
复制代码

启动 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

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-4-29 09:11 , Processed in 0.057241 second(s), 18 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表