Commit Graph

521 Commits

Author SHA1 Message Date
UlricQin 3c26beb48c
Update README.md 2021-01-07 22:55:07 +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
UlricQin fb1354898c Merge branch 'master' of https://github.com/didi/nightingale 2021-01-06 12:17:15 +08:00
UlricQin e0263edc54 fix genNameAndNoteByResources when note is blank 2021-01-06 12:17:06 +08:00
alick-liming b3a7d7c9a8
用户组织下拉接口 (#486)
Co-authored-by: alickliming <alickliming@didi.global.com>
2021-01-06 11:14:38 +08:00
alick-liming a8008a9418
Nodename search (#484)
* node name search

* node name search

* node name search

* node name search

Co-authored-by: alickliming <alickliming@didi.global.com>
2021-01-05 14:31:18 +08:00
Ulric Qin e82f560c44 code refactor 2021-01-03 18:13:48 +08:00
Ulric Qin 3589c7de69 compatible for blank tag value 2021-01-03 17:57:11 +08:00
Ulric Qin 72cf2c7578 add changelog for 3.4.0 2021-01-01 12:12:04 +08:00
Ulric Qin eddd77d2d9 add patch sql for hbs 2021-01-01 11:42:17 +08:00
UlricQin 5d61468de6 add vendor 2021-01-01 11:11:47 +08:00
Ulric Qin e85debddfc upgrade 3.4.0 2021-01-01 10:46:59 +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
710leo bad43090ff Add user dispname under the node 2020-12-31 18:09:42 +08:00
710leo c2867d9638 Modify alert function 2020-12-31 15:11:59 +08:00
UlricQin 6dbbbac344 bugfix: insert task_meta sql inject 2020-12-31 13:01:43 +08:00
UlricQin e903f609a5
Update README.md 2020-12-30 09:19:10 +08:00
Tiny 9dd1f1f90b
钉钉告警可以at特定指定人员 (#475)
* - add dingtalk robot @ special person
should config phone number in user IM field

* send msg by each robot when there are more than one robot in stra
2020-12-29 19:43:02 +08:00
Ulric Qin 4b22390faf refactor ip shell 2020-12-29 12:00:17 +08:00
710leo 9dbfef3df8 Optimize log output 2020-12-27 15:25:50 +08:00
UlricQin 28c794b2da modify stra.timeout default = 5000 2020-12-23 20:37:31 +08:00
UlricQin ee96ce5046 test port listen on 127.0.0.1 and identity.ip and ::1 2020-12-23 15:57:11 +08:00
UlricQin 28d311e759 bugfix sql 注入 2020-12-22 11:56:20 +08:00
710leo d355393074 fix: 同比变化率告警函数 2020-12-20 13:00:45 +08:00
moses 7b220da936
变化率绝对值算法问题 (#462) 2020-12-20 12:42:01 +08:00
Paul Chu a1130b0e7c
MOD: agent 文件系统 rw 探测 (#465) 2020-12-20 12:34:21 +08:00
710leo 8bba55e441 fix node role save 2020-12-17 20:26:13 +08:00
Paul Chu d6d2e32b2e
FIX: 修复订阅大盘图表 (#461)
* FIX: 修复短信报警模板的转义问题

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

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

* FIX: use the filename as template name

* FIX: template name

* FIX: 修复订阅大盘图表

Co-authored-by: zhupeiyuan <zhupeiyuan@fenbi.com>
2020-12-17 15:24:02 +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
UlricQin d0ec6d8244 Merge branch 'master' of https://github.com/didi/nightingale 2020-12-16 15:22:08 +08:00
UlricQin a232e7dfcd add some logs 2020-12-16 15:21:44 +08:00
qinyening 9b0a8dbb07
Agent 默认不采集 disk.rw.error 指标 (#455)
* configurable FsRWMetrics collect
2020-12-12 17:27:57 +08:00
ysicing 2e7a2a07ac
fix: ldap登录如果配置允许coverAttributes,会导致panic (#454)
fix #453

Signed-off-by: ysicing <i@ysicing.me>
2020-12-12 03:46:13 +08:00
UlricQin 36e119770a code refactor 2020-12-10 09:58:48 +08:00
UlricQin ac2efd2baf bugfix 2020-12-09 20:20:21 +08:00
alick-liming 5bd9c5fefc
支持全局数据统计 1.rdb分类资源数量 2.告警数量 (#447) 2020-12-08 23:47:09 +08:00
Ulric Qin 68bccb4d3f update readme 2020-12-06 08:16:28 +08:00
Ulric Qin 284b2c0db3 update readme 2020-12-06 08:08:58 +08:00
710leo 83a63da6c4 update vendor 2020-12-04 21:30:02 +08:00
710leo dc7c0885a7 feat: support get nodes by ids 2020-12-04 21:27:14 +08:00
UlricQin 82a42f3649 host filter support id field 2020-12-04 18:56:28 +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
Ulric Qin eedfc99064 upgrade 3.3.1 2020-12-03 21:22:50 +08:00
Ulric Qin 80c316201d code refactor 2020-12-03 21:11:39 +08:00
710leo a8f7f6a04e judge refactor 2020-12-03 11:50:45 +08:00
alick-liming 94eb306692
ams agent上报注册代码调整 (#436)
* rdb资源增加volume

* rdb用户增加创建时间

* rdb用户添加时间

* rdb新增添加用户时间代码调整

* test

* 1.agent上报扩展字段 2.rdb标签批量修改

* 代码调整

* 代码调整

* ams扩展代码调整

* test

* test

* 测试

* 错误调整

* ams agent上报注册代码调整

* map clear返回值去掉

Co-authored-by: alickliming <alickliming@didi.global.com>
2020-12-02 11:49:26 +08:00
Hayden e673c5340c
Update README.md (#434)
Change the README
2020-12-02 11:48:12 +08:00
DemoLiang 3c7c836b64
[FIX][issue#433]优化告警收敛,查询告警事件统计数据数据时使用created做between查询数据库时耗时非常久的问题,修改问使用etime 可以命中etime索引,提升查询性能,4C8G查询100W告警事件大概9s耗时,修改为etime大概700ms耗时 (#435) 2020-12-02 11:38:35 +08:00