urlooker-web
Clone or download
Latest commit c7d11a2 Apr 2, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps godep Apr 2, 2018
api fix err Nov 6, 2017
backend fix connection close Mar 30, 2017
cron - 接入ladp Apr 2, 2018
g - 接入ladp Apr 2, 2018
handler gix build Apr 2, 2018
http fix login err Nov 26, 2017
model - 接入ladp Apr 2, 2018
sender init Aug 5, 2016
static - 接入ladp Apr 2, 2018
store init Aug 5, 2016
utils - 接入ladp Apr 2, 2018
vendor godep Apr 2, 2018
views - 接入ladp Apr 2, 2018
.gitignore fix login err Nov 26, 2017
LICENSE Initial commit Aug 5, 2016
README.md refactor & fix eventid error Nov 6, 2017
cfg.example.json - 接入ladp Apr 2, 2018
control init Aug 5, 2016
main.go init Aug 5, 2016
schema.sql - 接入ladp Apr 2, 2018

README.md

urlooker-web

Web组件主要用于

  • 监控项的添加
  • 告警组人员管理
  • 查看url访问质量绘图

常见问题

Installation

# set $GOPATH and $GOROOT
mkdir -p $GOPATH/src/github.com/urlooker
cd $GOPATH/src/github.com/urlooker
git clone https://github.com/URLooker/web.git
cd web
./control build
./control start

Configuration


"debug": true,
    "salt": "have fun!",
    "past": 30, #查看最近几分钟内的报警历史和绘图,默认为30分钟
    "http": {
        "listen": "0.0.0.0:1984",
        "secret": "secret"
    },
    "rpc": {
        "listen": "0.0.0.0:1985"
    },
    "mysql": {
        "addr": "root:123456@tcp(127.0.0.1:3306)/urlooker?charset=utf8&&loc=Asia%2FShanghai",
        "idle": 10,
        "max": 20
    },
    "alarm":{
        "enable": true,
        "batch": 200,
        "replicas": 500,
        "connTimeout": 1000,
        "callTimeout": 5000,
        "maxConns": 32,
        "maxIdle": 32,
        "sleepTime":30,
        "cluster":{
            "node-1":"127.0.0.1:1986"
        }
    },
    "monitorMap": { #配置哪些url由哪个机房的agent去监控,默认均由default列表中的agent去监控
        "default":["hostname.1"], #监控指标多了之后agent地址可以填多个
        "idc1":["hostname.2"]
    },
    "falcon":{
        "enable": false, # 为true表示向falcon推送数据
        "addr":"http://falcon.transfer.addr/api/push",
        "interval": 60
    },
    "internalDns":{ #通过公司内部接口获取url对应ip所在机房
        "enable": false,
        "addr":""
    }