1.mysql

1.1准备环境打包

go env   #查看go的变量环境
mkdir -p $GOPATH/src/github.com/open-falcon
cd $GOPATH/src/github.com/open-falcon
git clone https://github.com/open-falcon/mymon.gitcd mymon
go get ./...
go build -o mymon

2.添加定时任务

#mysql monitoring
* * * * * cd /home/src/github.com/open-falcon/mymon && ./mymon -c etc/mon.cfg

3.环境配置详解

[default]log_file=mymon.log # 日志路径和文件名# Panic 0# Fatal 1# Error 2# Warn 3# Info 4# Debug 5log_level=4 # 日志级别falcon_client=http://127.0.0.1:1988/v1/push # falcon agent连接地址#自定义endpointendpoint=127.0.0.1 #若不设置则使用OS的hostname[mysql]user=root # 数据库用户名password= # 数据库密码host=127.0.0.1 # 数据库连接地址port=3306 # 数据库端口

仅供参考,具体配置,根据自己环境修改

2.redis监控

2.1下载源码添加hosts

git clone https://github.com/ZhuoRoger/redismon.git
vim /etc/hosts
127.0.0.1 redis

2.2 修改配置文件

[root@web02 /home/src/github.com/redismon/conf]# vim redismon.conf
items:
- {cluster_name: redis, password: '', port: 6379}
#- {cluster_name: Redis_Cluster_Slave_82, password: '', port: 7379
修改redis_monitor.py
[root@web02 /home/src/github.com/redismon/bin]# vim redis_monitor.py
redis_falcon_monitor = RedisFalconMonitor(redis_clusterName, redis_port,redis_password,redis_clusterName)
redis_clusterName既是endpoint
加入定时任务
#redis montions
*/1 * * * * python /home/src/github.com/redismon/bin/redis_monitor.py

2.3 可能的报错及解决方法

import yaml ImportError: No module named yaml解决:yum  install python-yamlFile "/home/src/github.com/redismon/bin/redis_monitor.py", line 8, in <module>import requestsImportError: No module named requests    #缺少requests,直接安装即可解决: yum install python-requests -yFile "redis_monitor.py", line 9, in <module>import redis
ImportError: No module named redis解决: yum install -y  python-redis

3.mongodb监控

3.1 准备环境下载源码

mkdir -p $GOPATH/src/github.com/open-falcon
cd $GOPATH/src/github.com/open-falcongit clone https://github.com/ZhuoRoger/mongomon.git

3.2 修改配置

cd mongomon/conf[root@lb02 /home/src/github.com/open-falcon/mongomon/conf]# cat mongomon.conf
items:-  {port: 234567 , user: "flah",password: user: "123456"}

3.3 启动

cd $GOPATH/src/github.com/open-falcon/mongomon/bin/  &&  python  mongodb_monitor.py

报错:

[root@db02 /home/work/mongomon/bin]# python mongodb_monitor.py 
Traceback (most recent call last):
  File "mongodb_monitor.py", line 9, in <module>
    import yaml

ImportError: No module named yaml

解决:

4. LVS监控

4.1环境准备

rpm -qa |grep libnl3.x86_64

yum install -y libnl3.x86_64  #环境需要

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

git clone https://github.com/mesos-utility/lvs-metrics.git

cd $GOPATH/src/github.com/open-falcon/lvs-metrics
make bin

open-falcon监控实施相关推荐

  1. falcon 监控 tcp closewait

    今天我们有台服务器,cpu使用率占满了,但是上去看,发现cpu steal使用超高,大概70%,后来同事可能是由于closewait高造成的.但是当前我们没有监控手段,还没有上. 这里就搞搞白. 查看 ...

  2. open falcon 监控php,小米监控系统open-falcon安装

    一.介绍 Open-Falcon 是小米的一款开源的互联网企业级监控系统解决方案. a.特点 ①数据采集免配置:agent自发现.支持Plugin.主动推送模式 ②容量水平扩展:生产环境每秒50万次数 ...

  3. Prometheus实现API监控实施方法

    一. 概述 前言 在建设接口管理平台,需要对所有接口的连通性进行检测,监测平台接口情况,进行统计和预警,因接口数量众多,且后续可能也会进行可视化展示和分析,决定使用prometheus监控体系进行监测 ...

  4. 旅游舆情监控实施方案

    每到各种节假日之际,与旅游相关的话题热度往往居高不下.随着2022年元旦将至,旅游出行再次成为舆论的关注焦点.尽管在疫情的影响下,规模不会很大,但是小范围.局部的旅行还是会存在. 然而,游客流量在给景 ...

  5. 客户口碑评价监控实施方案

    客户评价对于企业而言是一张对外宣传的有力名片. 一.客户评价的重要性 1.研究发现,企业获得越多客户评价效果越好,客户也潜意识认为拥有大量良好评价的产品更值得信任,可信度更高. 2.通过收集客户评价, ...

  6. 系统监控——监控系统选型分析及误区探讨

    本文摘自于朱政科撰写的<Prometheus 云原生监控:运维与开发实战>,重点介绍了在监控系统选型中应该考虑的问题.在本文中,你将会了解监控应用程序的黑盒和白盒方法,也会了解监控执行检查 ...

  7. 监控之美——监控之美-监控系统选型分析及误区探讨

    朱政科 读完需要 29 分钟 速读仅需 10 分钟 本文摘自于朱政科撰写的<Prometheus 云原生监控:运维与开发实战>,重点介绍了在监控系统选型中应该考虑的问题. 上一期监控之美- ...

  8. 浅谈 nagios监控配置

    该文档只针对于配置   打乱了commands.cfg templates.cfg contacts.cfg localhost.cfg  timeperiods.cfg  resource.cfg ...

  9. 运维监控系统——Zabbix简介

    前言 对于运维人员来说,监控是非常重要的,因为如果想要保证线上业务整体能够稳定运行,那么我们则需要实时关注与其相关的各项指标是否正常,而一个业务系统的背后,往往存在着很多的服务器.网络设备等硬件资源, ...

最新文章

  1. 【 FPGA 】关于FPGA中复位的设计问题(包含异步复位,同步释放方案)
  2. python格式规范的要求_python模块规定的格式,按照这样写,最规范
  3. errorgetlast php,php error_clear_last()函数与error_get_last()函数
  4. unity小工具 创建常用文件夹
  5. 国内云存储产品应用简介
  6. ASP.NET MVC Preview 2新特性
  7. UI实用素材|电子商务界面模板
  8. AIO、NIO、BIO
  9. 如何隐藏UITabBar 已经如何使已经隐藏的TabBar重现(原创)
  10. 服务器修改文件后撮,xp系统的dns服务器修改办法.doc
  11. 《机器视觉算法与应用》第3章 机器视觉算法之数据结构——学习笔记
  12. Android同文输入法的使用(开源输入法Trime)
  13. 使用VBScript和ADSI
  14. macOS上显示隐藏文件
  15. 【公众号】JAVA微信公众号技术大佬文章精选
  16. C语言之“输出100~200之间的素数”
  17. AS 把鼠标放在targetSdkVersion xx下边红波浪线提示:Google Play requires that apps target API level 31 or higher.
  18. Linux安装unrar
  19. 蕾辈使匚冉吃勘刚莱涨坟怪
  20. anaconda下载python的库_Anaconda下载及安装及查看安装的Python库用法

热门文章

  1. 三、GP安装笔记-greenplum安装
  2. 缓存数据库Redis相关介绍
  3. socket---proto_ops---inetsw_array等基本结构
  4. Markdown学习规划
  5. 为啥人类从1970年1月1日开始计时?
  6. xp系统怎么下载python_斯柯达汽车显示器上所有标志
  7. 联发科MT6753处理器概述,MT6753芯片资料
  8. mini6410/mini210s安卓源代码启动图片修改
  9. 微信公众号获取用户手机
  10. JS中的Generator函数