Commit Graph

728 Commits

Author SHA1 Message Date
Ulric Qin 99fbdae121 refactor boardPutConfigs 2022-11-11 12:11:39 +08:00
kongfei ba5aba9cdf sync main branch code 2022-11-10 12:47:46 +08:00
kongfei 3400803672 regenerate easyjosn file for router_opentsdb 2022-11-10 12:41:16 +08:00
kongfei605 f11377b289
replace json with easyjson for router (#1261) 2022-11-10 11:11:20 +08:00
kongfei 1165312532 replace json with easyjson for router 2022-11-10 11:00:38 +08:00
JellyTony 8a145d5ba2
feat: 报警脚本超时时间改为可配置 (#1253)
* Update docker-compose.yaml

* Update docker-compose.yaml

* feat: 报警脚本超时时间改为可配置

* feat: docker 镜像Alerting 增加 超时时间

Co-authored-by: ulricqin <ulricqin@qq.com>
Co-authored-by: JeffreyBool <zhanggaoyuan@mediatrack.cn>
2022-11-04 15:18:36 +08:00
47 352415662a
feat:CAS and OAuth2 login (#1236)
* Feat(cas login):Add CAS login

Signed-off-by: root <foursevenlove@gmail.com>

* Fix(CAS login):1.print logs of CAS Authentication Response's Attributes 2.modify fileds of ssoClient and CAS config.

Signed-off-by: root <foursevenlove@gmail.com>

* Fix(CAS login):Fields modifing

Signed-off-by: root <foursevenlove@gmail.com>

* Feat(OAuth Login):1.Add OAuth2 login 2.Add display name

Signed-off-by: root <foursevenlove@gmail.com>

* Fix(webapi.conf):Add example

Signed-off-by: root <foursevenlove@gmail.com>

* fix(webapi.conf):Modify default value of username in OAuth2

Signed-off-by: root <foursevenlove@gmail.com>

* Fix:Error handling

Signed-off-by: root <foursevenlove@gmail.com>

Signed-off-by: root <foursevenlove@gmail.com>
2022-11-02 14:31:59 +08:00
chenginger 106a8e490a
alert mute cannot refresh the bug (#1242)
bugfix:mute cannot be refreshed after being modified
2022-11-01 15:41:01 +08:00
Ulric Qin 5332f797a6 add alert duration in wecom.tpl 2022-10-30 17:11:51 +08:00
Ulric Qin aff0dbfea1 use json-iterator/go instead encoding/json 2022-10-28 10:22:04 +08:00
Ulric Qin da5dd683d6 bugfix 2022-10-25 09:46:32 +08:00
zheng 15892d6e57
规则名称支持变量 (#1217)
* 规则名称支持变量

* parse rule_name
2022-10-20 20:18:15 +08:00
xtan 62867ddbf2
feat: conf file password supports ciphertext (#1207)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-10-20 12:31:48 +08:00
Yening Qin b893483d26
prom client support add header (#1203)
* prom client support add header
2022-10-18 20:44:38 +08:00
Ulric Qin 4130a5df02 board: support ident field 2022-10-18 19:46:08 +08:00
Ulric Qin 445d03e096 Merge branch 'main' of github.com:ccfos/nightingale 2022-10-12 20:37:34 +08:00
Ulric Qin 577c402a5b support: callback_del 2022-10-12 20:37:21 +08:00
zheng 40bbbfd475
bugfix: duplicate recoding rule metric name (#1186) 2022-10-12 18:36:04 +08:00
Ulric Qin 0d05ad85f2 callback_add callback_del 2022-10-12 18:29:59 +08:00
Ulric Qin e70622d18c bugfix: update cluster when heartbeat 2022-10-02 21:21:17 +08:00
gengleiming 562f98ddaf
bug: user update by multifields, param need '...' (#1170)
bug: 多字段更新用户时,参数作为slice接受,需要拆包之后再往下传入。该bug导致user.Update方法只能成功更新第一个参数对应的字段
2022-09-26 14:45:58 +08:00
Ulric Qin ee07969c8a code refactor 2022-09-23 10:52:52 +08:00
Ulric Qin 5b0e24cd40 code refactor 2022-09-23 10:12:12 +08:00
Ulric Qin 78b2e54910 bugfix: do not make event if target is nil 2022-09-23 10:06:10 +08:00
Ulric Qin 2e64c83632 bugfix: fix nil target 2022-09-23 10:03:10 +08:00
KurolZ 95727e9c00
feat: support for sharing dashboards (#1150)
* feat: support for sharing dashboards

* merge dashboard get interface

* update read-only permission verification
2022-09-16 15:03:12 +08:00
Yening Qin 3a3ad5d9d9
feat: add configs service api (#1155)
* add configs service api
2022-09-16 12:06:39 +08:00
xtan 23eb766c14
feat: alert_subscribe add name and disabled (#1145)
* feat: alert_subscribe add name and disabled

* feat: alert_subscribe add name and disabled

Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-09-07 12:24:38 +08:00
SunnyBoy-WYH a7bad003f5
feat: alert-mute support edit and disable (#1144)
* batch query prom for single panel

* make code better:

1.extract server/api.go

2.make webapi reading prom with reusing server's API,not a new prom client

* clear code

* clear code

* format code
clear code

* move reader.go,reuse webapi/prom/prom.go clusterTypes clients cache

* clear code,extract common method

* feat: add edit and disabled for alert mute

* fix cr problem

* disabled add default 0
2022-09-05 12:11:50 +08:00
Ulric Qin d0ce4c25e5 Merge branch 'main' of github.com:ccfos/nightingale 2022-09-02 12:19:47 +08:00
Ulric Qin 01aea821b9 extract ident from append tags 2022-09-02 12:19:34 +08:00
xtan bdc1c1c60b
feat: compatible with redis4 to 7 (#1141)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-09-01 18:10:31 +08:00
Yening Qin 09f37b8076
refactor: change alert mute clean (#1140)
refactor: change alert mute clean
2022-09-01 11:18:04 +08:00
kongfei 5c60c2c85e mm notification support at someone 2022-08-31 23:03:29 +08:00
kongfei 81fade557b fix dingtalk notification url 2022-08-31 15:45:59 +08:00
kongfei 26a3d2dafa add mm notification with notify plugin 2022-08-31 15:31:27 +08:00
kongfei 5e931ebe8e add mm notification 2022-08-31 14:11:28 +08:00
Ulric Qin 940313bd4e use big nodata interval 2022-08-27 18:15:56 +08:00
Ulric Qin a38e50d6b8 bugfix: server hearbeat 2022-08-27 10:35:15 +08:00
ulricqin 3963470603
add configuration ForceUseServerTS (#1128) 2022-08-22 23:22:58 +08:00
xiaoziv 640b6e6825
fix: add board check when del group (#1124)
* fix: add board check when del group

* Update busi_group.go

Co-authored-by: Ziv <xiaozheng@tuya.com>
Co-authored-by: ulricqin <ulricqin@qq.com>
2022-08-22 19:08:40 +08:00
ulricqin e7d2c45f9d
Manage bindings of n9e-server and datasource in web (#1127)
* manage bindings of n9e-server and datasource

* fix sync memsto
2022-08-22 18:39:29 +08:00
Yening Qin 80ee54898a
feat: alert rule support cate (#1123)
* alert rule support cate

* his_event add cate

* change RecoverEvent time

* add get event api

* event query by cate
2022-08-22 14:17:17 +08:00
Ulric Qin c1fec215a9 add some api for server cluster bindings 2022-08-18 09:27:43 +08:00
Ulric Qin 388228a631 collect target total number 2022-08-17 20:16:42 +08:00
ulricqin b4ddd03691
read prom url from database (#1119)
* add model alerting_engine

* heartbeat using db

* reader.Client from database

* fix sql
2022-08-17 17:20:42 +08:00
Yening Qin b92e4abf86
feat: support handle event api (#1113)
* support handle event service api
2022-08-17 11:22:49 +08:00
Ulric Qin a1c458b764 use hostname:port as identity 2022-08-17 10:28:57 +08:00
zheng 54eab51e54
添加告警规则执行日志 (#1112) 2022-08-15 17:17:28 +08:00
xiaoziv 3b5c8d8357
optimize error report (#1109)
* optimize error report

* code refactor

* add /-/reload as reload route like prometheus

Co-authored-by: ziv <xiaozheng@tuya.com>
2022-08-12 14:10:03 +08:00