Code Monkey home page Code Monkey logo

scout's Introduction

Scout

可能是东半球最灵活的 URL 监控系统

demo

特色

功能

  • 自定义请求方法、请求头、请求体
  • HTTP 状态码、响应时间、返回主体检测
  • 用 JavaScript 代码写检测条件!详情请见使用指南
  • 自定义检测时间间隔
  • 支持活跃时间段,活跃时间外不检测
  • 支持异常容忍次数,连续异常次数在此之下的不告警
  • 可配置从异常状态中恢复时是否通知到接受组
  • 告警通过 HTTP 传输数据,可自由配置接受告警的 URL
  • 支持 Apdex

用户界面(就是好看又好用)

  • 写测试用例时,即时查看代码运行结果,并且 JSON 与 JavaScript 语法高亮
  • 编辑活跃时间段时,有直观的图表显示
  • 可按标签、按源,或者手动多选监控条目,然后批量修改
  • 可查看告警记录,记录了每条告警的发送状态
  • 对于每个监控条目,有对应的详情页

截图

环境需求

Node.js v6+
MongoDB v3+

(应用处于开发阶段,低级版本未经测试)

安装与启动

git clone https://github.com/HandsomeOne/Scout.git

cd Scout/client
yarn
yarn build

cd ../server
yarn
yarn build

npm install -g pm2
pm2 start ./server/build mongodb://username:password@host/database
# MongoDB URI 格式参见 (https://docs.mongodb.com/manual/reference/connection-string/)
# 若不传,默认为 `mongodb://localhost/scout`

然后访问 http://localhost:3001/

升级

cd Scout
git pull --force
cd client
yarn
yarn build

cd ../server
yarn
yarn build

欢迎 issues 和 PRs。

待实现

  • 监控可启动、暂停
  • 高级选项的默认值可以配置
  • 使用 Redux 重构前端数据层(感谢 @retanoj)
  • 详情页补全与优化
    • Apdex
    • 响应时间
    • 状态码
    • 状态信息用饼状图实现
  • 表单验证
  • 分布式

scout's People

Contributors

handsomeone avatar retanoj avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.