Git Product home page Git Product logo

monitor1's Introduction

monitor

概述:

本项目主要完成一个完整url类型的监控系统搭建,包括监控http状态码、数据接口返回值以及页面元素 主要分为三个部分:web、api、scheduler 欢迎大家批评指正

web:

使用vue.js开发,实现前端添加删除监控项,查看报警运行记录等功能

api:

使用php开发,完成数据备份至数据库,与前端+scheduler后端交互等功能

scheduler

使用python开发,基于apscheduler完成任务的定时执行与是否满足配置条件的扫描

环境部署:

由于有跨域问题存在,web与api的部分需布在同一个nginx的server下。
scheduler为独立部署,独立开出一个端口供api进行访问,scheduler所使用的python需安装MysqlDB和ApScheduler的扩展,scheduler的配置文件如下:
[network]
#服务监听端口
port=xxxx
[log]
#日志输出路径,可以指定绝对路径,未指定绝对路径则以当前路径作为相对路径
path=logs
#访问日志
infolog=scheduler.log
#错误和警告日志
warnlog=scheduler.log.wf
[async]
#是否使用协程处理IO,若是则忽略下面对IO线程数的设置
coroutine=true
#允许的IO线程数
io_number=16
#允许的工作线程个数
work_number=32
[scheduler]
#线程个数
thread_num=xxxx
#进程个数
process_num=xxxx
[database]
#数据库主机地址
host=xxxxx
#访问端口
port=xxxx
#用户名
username=xxxx
#密码
password=xxxxx
#数据库名
db=xxxxx
#操作字符集
charset=utf8
[alert]
#这一部分为公司内部发送邮件和短信的通用服务的url,若没有类似服务需实现短信和邮件发送的功能
#邮件url
mailurl=http://xxxxxxxxxxxx
#短信url
messageurl=http://xxxxxxxxxxx
[proxy]
#公司内部访问外网所用的代理
#http代理
http=http://xxxxxxxxx
#https代理
https=http://xxxxxxxxx
启动方式为:nohup /home/work/python/bin/python scheduler_start.py > /dev/null &

copyright

taihedeveloper全体成员

monitor1's People

Contributors

eastconan avatar

Watchers

 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.