分享下最近写的 url 监控 项目 urlooker,监控web服务可用性及访问质量,采用go语言编写,易于安装和二次开发

Feature

  • 返回状态码检测
  • 页面响应时间检测
  • 页面关键词匹配检测
  • 自定义Header
  • GET、POST、PUT访问
  • 自定义POST BODY
  • 检测结果支持向open-falcon推送

Architecture

Architecture

ScreenShot

看图

看图

添加监控项

常见问题

Install

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 安装依赖
yum install -y redis
yum install -y mysql-server

# 导入数据库
wget https://raw.githubusercontent.com/710leo/urlooker/master/sql/schema.sql
mysql -h 127.0.0.1 -u root -p < schema.sql

# 安装组件
# set $GOPATH and $GOROOT
mkdir -p $GOPATH/src/github.com/710leo
cd $GOPATH/src/github.com/710leo
git clone https://github.com/710leo/urlooker.git
go get ./...
./control build
./control start all

打开浏览器访问 http://127.0.0.1:1984 即可