当前位置: 首页 > news >正文

SLA探活工具EaseProbe

在这里插入图片描述

工具介绍

EaseProbe可以做三种工作:探测、通知和报告。
项目地址:https://github.com/megaease/easeprobe
在这里插入图片描述

1、安装

[root@localhost ]# yum -y install unzip go
[root@localhost ]# unzip easeprobe-main.zip
[root@localhost ]# cd easeprobe-main
[root@localhost easeprobe-main]# make
github.com/megaease/easeprobe/notify/aws tested bygithub.com/megaease/easeprobe/notify/aws.test importsgithub.com/aws/aws-sdk-go/aws/request: github.com/aws/aws-sdk-go@v1.44.294: Get "https://proxy.golang.org/github.com/aws/aws-sdk-go/@v/v1.44.294.zip": dial tcp 172.217.163.49:443: i/o timeout
make: *** [/opt/meepo/easeprobe-main//build/bin/easeprobe] Error 1[root@localhost easeprobe-main]# go env -w GOPROXY=https://goproxy.io,direct
[root@localhost easeprobe-main]# make

在这里插入图片描述

2、配置使用

PS:下面列举出各个模块的配置,可以自己测试验证效果

[root@localhost easeprobe-main]# vim resources/config.yaml
# --------------------- HTTP Probe Configuration
http: # http probes- name: My Blogurl: http://www.aihuidi.com
#  -------------------- TCP Probe Configuration
tcp:- name: Webhost: 192.168.200.180:22
# --------------------- SSH Probe Configuration
ssh:servers:- name : Web nodehost: 192.168.200.149:22username: rootpassword: passwordcmd: "ps aux | grep nginx"
# --------------------- TLS Probe Configuration
tls:- name: Official websitehost: www.aihuidi.com:443insecure_skip_verify: trueexpire_skip_verify: falsealert_expire_before: 168h
# --------------------- Notification Configuration
notify:log:- name: log file # local log filefile: /var/log/easeprobe.logemail:- name: "DevOps Mailing List"server: smtp.163.com:25username: xxxxpassword: xxxxto: "发送给谁的邮箱"
# --------------------- Global Settings Configuration    
settings:probe:timeout: 30s # the time out for all probes 探测超时设置interval: 1m # probe every minute for all probes  探测时间间隔默认1分钟alert:strategy: regularfactor: 1max: 3

在这里插入图片描述

3、启动

[root@localhost easeprobe-main]# pwd
/opt/meepo/easeprobe-main
[root@localhost easeprobe-main]# build/bin/easeprobe -f ./resources/config.yaml

在这里插入图片描述Web SLA http://192.168.200.183:8181/

JSON
http://192.168.200.183:8181/api/v1/sla

4、后台运行

[root@localhost easeprobe-main]# nohup build/bin/easeprobe -f ./resources/config.yaml &

5、邮件告警

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

http://www.lryc.cn/news/104313.html

相关文章:

  • [Java] 观察者模式简述
  • linux驱动定时器实现按键按下打印字符
  • 反转链表(JS)
  • [PyTorch][chapter 45][RNN_2]
  • 基于canvas画布的实用类Fabric.js的使用
  • 基于SpringBoot+Vue驾校理论课模拟考试系统源码(自动化部署)
  • SpringBoot使用Redis对用户IP进行接口限流
  • MeterSphere学习篇
  • 大数据技术之Clickhouse---入门篇---数据类型、表引擎
  • 【微服务架构设计】微服务不是魔术:处理超时
  • 天下风云出我辈,AI准独角兽实在智能获评“十大数字经济风云企业
  • SpringBoot2学习笔记
  • 安达发|APS生产派单系统对数字化工厂有哪些影响和作用
  • 状态机的介绍和使用 | 京东物流技术团队
  • tinkerCAD案例:32. 使用对齐工具构建喷泉
  • 一起学数据结构(2)——线性表及线性表顺序实现
  • mqtt协议流程图
  • 7、单元测试--测试RestFul 接口
  • 国家留学基金委(CSC)|发布2024年创新型人才国际合作培养项目实施办法
  • 找好听的配乐、BGM就上这6个网站,免费商用。
  • 【前端知识】React 基础巩固(三十五)——ReduxToolKit (RTK)
  • android Android Studio Giraffe | 2022.3.1 版本Lombok不兼容 解决方案
  • 前端框架学习-基础前后端分离
  • 数据中心电子电气设备常见的五种地线种类和做法
  • 重学C++系列之STL库
  • JAVA SE -- 第十四天
  • 微信小程序监测版本更新
  • 《Java面向对象程序设计》学习笔记——第 2 章 基本数据类型、数组和枚举类型
  • TDesign中后台管理系统-访问后端服务
  • 【机器学习】Gradient Descent for Logistic Regression