falcon 关于mysql监控_open-falcon (Mysql监控)mymon安装

原文链接:https://github.com/open-falcon/mymon

Introduction

mymon(MySQL-Monitor) -- MySQL数据库运行状态数据采集脚本,采集包括global status, global variables, slave status等。

#set $GOPATH and $GOROOT

mkdir -p$GOPATH/src/github.com/open-falcon

cd$GOPATH/src/github.com/open-falcon

git clone https://github.com/open-falcon/mymon.git

cd mymon

go get ./...

go build -o mymonecho'* * * * * cd $GOPATH/src/github.com/open-falcon/mymon && ./mymon -c etc/mon.cfg'>/etc/cron.d/mymon

[default]

log_file=mymon.log # 日志路径和文件名

# Panic 0

# Fatal 1

# Error 2

# Warn 3

# Info 4

# Debug 5

log_level=4 # 日志级别

falcon_client=http://127.0.0.1:1988/v1/push # falcon agent连接地址

#自定义endpoint

endpoint=127.0.0.1 #若不设置则使用OS的hostname

[mysql]

user=root # 数据库用户名

password= # 数据库密码

host=127.0.0.1 # 数据库连接地址

port=3306 # 数据库端口

请参考./metrics.txt,其中的内容,仅供参考,根据MySQL的版本、配置不同,采集到的metrics也有差别。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值