Discover Packages
github.com/leonzyang/agent
command
module
Version:
v0.0.0-...-9e2cc1d
Opens a new window with list of versions in this module.
Published: Dec 27, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
falcon-agent
This is a windows monitor agent.
Installation
It is a golang classic project
# set $GOPATH and $GOROOT
git clone https://github.com/LeonZYang/agent.git
cd agent
go build -o falcon-agent.exe
C:\workspace\src\github.com\LeonZYang\agent\falcon-agent.exe -c C:\workspace\src\github.com\LeonZYang\agent\cfg.json > C:\workspace\src\github.com\LeonZYang\agent\var\var.log 2>&1
Configuration
heartbeat: heartbeat server rpc address
transfer: transfer rpc address
ignore: the metrics should ignore
说明
数据采集用的是gopsutil(修改了部分代码),具体请查看看https://github.com/shirou/gopsutil
agent不提供插件、http和缓存功能
目前监控项只有alive,cpu,disk,mem,net,load
编译环境需要go-1.5
go 1.5有一个bug,修改src/net/interface_windows.go,大概在第50行,修改完重新编译go即可
修改 return iia[:iilen-1], nil 为 return iia[:iilen], nil
网卡名称不支持中文(上报Transfer后数据无法显示,具体原因没细查,好像可以修改graph表字符集为utf-8)
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
tools
internal/common
gopsutil is a port of psutil(http://pythonhosted.org/psutil/).
gopsutil is a port of psutil(http://pythonhosted.org/psutil/).
Click to show internal directories.
Click to hide internal directories.