Commit Graph

79 Commits

Author SHA1 Message Date
UlricQin 25c31fcb2e +alarmEnabled true 2021-01-22 14:34:20 +08:00
UlricQin 09154e40aa 3.5.0 release 2021-01-22 11:45:05 +08:00
Ulric Qin 955fe6795d test modify screen tpl 2021-01-21 20:16:50 +08:00
yubo d640d86160
add mon.plugins.redis descriptions (#529)
* add mon.plugins.redis descriptions

* bugfix: add region field for instances/heartbeat
2021-01-21 16:35:31 +08:00
yubo 91503cfd25
update template document for mysql,mongo and redis (#526)
* update mysql document

* update template document for mysql,mongo and redis

* use TelegrafPlugin interface

* add mon.plugins.github as an exmpale
2021-01-20 23:07:56 +08:00
710leo d2be562619 add alert & screen template 2021-01-18 13:26:37 +08:00
yubo 74545012ed
add models.user.i18n (#504) 2021-01-12 20:27:49 +08:00
yubo 7161c1ac4e
adjust some file, variable name for prober module (#503)
* move pulgins_config.go to config dir

* add mongodb, redis yml
2021-01-11 22:08:27 +08:00
yubo c0049326b6
Add mongdb as a plugin (#489)
* bugfix: whiteList list return empty

* support multi-dict for i18n && add mongodb for monapi as a plugin

* use 10day as max lifetime for extra mode auth

* bugfix: ignore i18n with default value

* Spelling mistakes
2021-01-07 20:06:48 +08:00
yubo 543d345aea
Dev (#487)
* add rdb config auth.debug for white_list

* update prober config support mode param

* feature: support access-token control with max connection, idle time, ...

* add token/session delete with auth check

* enable debug user for auth

* skip init sso db if not enable
2021-01-07 09:13:04 +08:00
yubo d45ea02562
Rdb (#479)
* use collector interface

* mysql can work fine

* add basecollector

* add prober & monapi.plugins

* enable mysql plugins work

* rename collector -> manager

* add white list access check for rdb

* add cache module for authConfig & session

* rollback n9e_rdb_3.3.0.sql

* add sql ddl document

* add white_list, pwd, login access control

* add email code for login & reset password

* use sessionUsername instead of cookieUsername

* remove cookie name and data from session

* rename userName to username

* add remote_addr with session connection

* add get user by sid with cache

* enable cookie life time could be zero

* go mod tidy

* Rdb with session & monapi with telegraf (#456)

* use collector interface

* mysql can work fine

* add basecollector

* add prober & monapi.plugins

* enable mysql plugins work

* rename collector -> manager

* add white list access check for rdb

* add cache module for authConfig & session

* rollback n9e_rdb_3.3.0.sql

* add sql ddl document

* add white_list, pwd, login access control

* add email code for login & reset password

* use sessionUsername instead of cookieUsername

* remove cookie name and data from session

* rename userName to username

* add remote_addr with session connection

* add get user by sid with cache

* enable cookie life time could be zero

* go mod tidy

* add plugins config for prober

* add prober plugin expression parse

* update transfer default config for m3

* Rdb (#458)

* bugfix: session gc

* use flag for pwdMustInclude

* change user login function

* delete invite token after use

* bugfix: login response

* add sessionStart middle ware

* add auth module

* add i18n for rdb

* add i18n.zh for rdb.auth

* add mon plugins(redis, mongodb)

* update config

* add sub struct into definitions

* clean up sid cache after session destory

* bugfix: get user return nil when not found

* update i18n

* bugfix: ignore cache nologin user

* add user for callback output

* add password change api

* update default configfile & sql patch

* merge mon http middleware from rdb

* remove sso logout, sso already supporte one time auth
2021-01-01 10:41:30 +08:00
Ulric Qin 4b22390faf refactor ip shell 2020-12-29 12:00:17 +08:00
Feng_Qi 37c8317410
告警信息增加设备名称(name)和设备备注(note) (#460)
* fix port check and push debug log

1:如果服务没有监听在 0.0.0.0 上,而是监听在特定地址上的话,在 127.0.0.1 上无法检测到端口。修改为如果 127.0.0.1 检测不到话,在 identity 的地址上再检测一次。
2. http push 部分缺乏 debug 日志,把 debug log 改到 push 里面以补全。

* Update cron.go

* notify add resource name and note

* Update notify.go
2020-12-16 19:51:06 +08:00
yubo 19337b230c
change transfer.m3db.env default -> default_env (#459) 2020-12-16 19:37:16 +08:00
Paul Chu 30b600fe36
BUGFIX: 修复短信报警模板的转义问题 (#440)
* FIX: 修复短信报警模板的转义问题

报警说明里的信息由于 html template 的转义,会将部分字符转义为 html 表示,但是短信内容不需要转义。
向 template 模板添加 unescaped 处理函数,并在模板文件中使用 unescaped 标识不需要转义的字段,实现避免转义

* FIX: html template func 需要在 phase 之前添加

* FIX: use the filename as template name

* FIX: template name

Co-authored-by: zhupeiyuan <zhupeiyuan@fenbi.com>
2020-12-04 16:18:05 +08:00
710leo 0bd9b5b0d1 update dict.json 2020-12-01 10:56:44 +08:00
qinyening 74e85cdadc
support i18n (#431) 2020-11-30 21:11:46 +08:00
yubo 46c1c972ab
docs: add m3db install (#414)
* docs: add m3db install

* change transfer default settings
2020-11-20 07:37:00 +08:00
Ulric Qin 250dd0c92d no cache for *.json 2020-11-13 21:32:10 +08:00
yubo dd67efe0f6
support time limit for m3db query (#396) 2020-11-12 15:50:31 +08:00
yubo 033383eea4
validate ui query, add aggrFun support for resample (#392) 2020-11-12 11:50:40 +08:00
yubo 69ceeff9b8
M3db (#388)
* support openID2.0

* generate UUID if it's not set

* add m3db support

* add test shell

* update transfer.yml

* remove klog

* use remote m3 repo

* remove some file

* add description for tansfer.m3db config

* add query data for ui
2020-11-10 14:58:27 +08:00
yubo b2baef0643
Auth with SSO (#387)
* add logout v2 for sso

* support sms-code login

* use db instead of memory cache for login code

* feature: support reset password by sms code

* remove deprecated api/code

* feature: support image captcha

* use db instead of memory cache for sso.auth.state

* add authLogin for login, v1/login; support (*)[.local].tpl for tpl file

* add username to sms-code api

* disable captcha by default in rdb.yml
2020-11-10 13:23:37 +08:00
yubo 2d1a2fd187
M3db (#385)
* support openID2.0

* generate UUID if it's not set

* add m3db support

* add test shell

* update transfer.yml

* remove klog

* use remote m3 repo

* remove some file
2020-11-09 19:52:44 +08:00
UlricQin e64a892275 add cleaner config 2020-11-06 17:25:14 +08:00
yubo 17762d9daa
merge login & v1Login (#375)
* add logout v2 for sso

* support sms-code login

* use db instead of memory cache for login code

* feature: support reset password by sms code

* remove deprecated api/code

* feature: support image captcha

* use db instead of memory cache for sso.auth.state

* add authLogin for login, v1/login; support (*)[.local].tpl for tpl file
2020-11-02 15:54:15 +08:00
yubo 9bef8ddee3
login with sso,captcha,sms-code (#374)
* add logout v2 for sso

* support sms-code login

* use db instead of memory cache for login code

* feature: support reset password by sms code

* remove deprecated api/code

* feature: support image captcha

* use db instead of memory cache for sso.auth.state
2020-11-02 12:47:41 +08:00
qinyening 313144bebf
agent支持metrics指标采集能力 (#368) 2020-10-29 16:54:48 +08:00
yubo 1fdcbd848c
Dev (#361)
* add logout v2 for sso

* support sms-code login

* use db instead of memory cache for login code
2020-10-27 17:51:39 +08:00
Ulric Qin 8c6726800f host field management done 2020-10-25 20:00:08 +08:00
yubo 5b9a03a261
add OAuth2.0 callback/authorize V2 for UI (#353)
* support openID2.0

* generate UUID if it's not set

* change OAuth2 callback method to API style
2020-10-23 15:22:06 +08:00
qinyening 2e80e82fc4
change hbs api & change perm point (#344)
* change hbs api & change perm point
2020-10-17 17:32:15 +08:00
yubo ecc736be8b
support openID2.0 (#337) 2020-10-14 13:30:53 +08:00
alick-liming e84d7f8741
im add wechat_robot and dingtalk_robot (#332)
* im wechat

* im wechat

* im add wechat_robot dingtalk_robot

Co-authored-by: alickliming <alickliming@didi.global.com>
2020-10-11 08:24:04 +08:00
alick-liming 8455994118
im wechat (#330)
* im wechat

* im wechat

Co-authored-by: alickliming <alickliming@didi.global.com>
2020-10-09 22:42:19 +08:00
Ulric Qin 700370f70f add arch image and stra.json 2020-10-08 15:23:39 +08:00
Ulric Qin 95c96b3894 add service files 2020-10-08 10:55:27 +08:00
Ulric Qin 472ed62c12 Merge branch 'master' of https://github.com/didi/nightingale 2020-09-28 22:55:48 +08:00
Ulric Qin 04822e9d8f bugfix: address.yml: give default config for rdb.addresses 2020-09-28 22:55:26 +08:00
alick-liming fe81c6cad7
配置调整,连接检查 (#314)
* 1.rabbitmq 配置文件 2.连接检查

* 代码调整

* 启动协程

* rabbitmq 连接检查代码调优

* rabbitmq 连接检查代码调优

Co-authored-by: alickliming <alickliming@didi.global.com>
2020-09-28 17:20:31 +08:00
Ulric Qin 6baebfad11 pub dir set to /home/n9e/pub 2020-09-27 23:03:45 +08:00
UlricQin db75a5fb74 modify nginx for static files 2020-09-27 19:57:43 +08:00
Ulric Qin 4197cfba98 add nginx.conf 2020-09-26 22:58:14 +08:00
Ulric Qin 4ec1086fc9 add tsdb.yml 2020-09-26 22:41:34 +08:00
Ulric Qin 3d11f2cacc code refactor 2020-09-26 22:38:24 +08:00
Ulric Qin b4ce2e8167 code refactor 2020-09-26 22:33:31 +08:00
Ulric Qin 5527ed0a86 code refactor 2020-09-26 22:28:24 +08:00
Ulric Qin 107ad572f8 code refactor 2020-09-26 22:21:23 +08:00
710leo ed35ddc388 3.0.0 2020-09-26 16:53:10 +08:00
710leo 86b31575eb clean code 2020-09-26 16:28:27 +08:00