1.1. urlooker

监控web服务可用性及访问质量,采用go语言编写,易于安装和二次开发

1.2. Feature

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

1.3. Architecture

Architecture

1.4. ScreenShot

ScreenShot ScreenShot

1.5. 常见问题

1.6. Install

docker 安装

git clone https://github.com/710leo/urlooker.git
cd urlooker
docker build .
docker volume create urlooker-vol
# [CONTAINER ID] 在实际操作中需要替换为实际的镜像的ID
docker run -p 1984:1984 -d --name urlooker --mount source=urlooker-vol,target=/var/lib/mysql --restart=always [CONTAINER ID]

源码安装

# 安装mysql
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

# 安装组件
curl https://raw.githubusercontent.com/710leo/urlooker/master/install.sh|bash
cd $GOPATH/src/github.com/710leo/urlooker

# 将[mysql root password]替换为mysql root 数据库密码
sed -i 's/urlooker.pass/[mysql root password]/g' configs/web.yml

./control start all

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

1.7. 答疑

QQ群:556988374

Copyright 2015 - 2018 Xiaomi Inc. all right reserved,powered by Gitbook该文件修订时间: 2020-06-06 21:00:02