Commit Graph

703 Commits

Author SHA1 Message Date
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
ulricqin 6c2c945bd9
event.Cluster use target.Cluster instead of rule.Cluster (#1108) 2022-08-12 13:13:06 +08:00
xiaoziv c6a1761a7b
support tpls reload (#1104)
Co-authored-by: ziv <xiaozheng@tuya.com>
2022-08-11 17:05:41 +08:00
Ulric Qin 23d7e5a7de add disk_util for target table 2022-08-10 17:05:29 +08:00
xiaoziv b1b2c7d6b0
feat: support ident disk usage metric (#1100)
* feat: support ident disk usage metric

* code refactor

Co-authored-by: ziv <xiaozheng@tuya.com>
2022-08-10 17:00:49 +08:00
Resurgence c1e92b56b9
feat: add write_relabel action before n9e remote writing to multi tsdb (#1098)
* add write relabel config

* change parse relabel Regex field time when config loaded
2022-08-10 16:50:52 +08:00
xiaoziv fd93fd7182
feat: support i18n metric desc (#1097)
* support i18n metric desc

* code refactor

* code refactor

Co-authored-by: ziv <xiaozheng@tuya.com>
2022-08-10 13:21:11 +08:00
Ulric Qin 9b3a9f29d9 extract promql to webapi.conf 2022-08-09 20:01:54 +08:00
Ulric Qin 49965fd5d5 fix target mem util 2022-08-09 17:19:27 +08:00
Ulric Qin a248e054fa add some host metrics for targets get api 2022-08-09 17:11:24 +08:00
xiaoziv fd3e51cbb1
fix i18n header bug (#1095)
Co-authored-by: ziv <xiaozheng@tuya.com>
2022-08-08 20:28:36 +08:00
xiaoziv bd0480216c
feat: support i18n request headerkey (#1094)
Co-authored-by: ziv <xiaozheng@tuya.com>
2022-08-08 19:02:14 +08:00
Ulric Qin 2c963258cf code refactor 2022-08-08 15:26:11 +08:00
Yening Qin b4f267fb01
feat: prom support tls (#1091) 2022-08-08 12:17:52 +08:00
xiaoziv ea46401db2
remove record rule check (#1090)
Co-authored-by: ziv <xiaozheng@tuya.com>
2022-08-06 18:15:04 +08:00
xiaoziv 58e777eb00
support graph url (#1088)
Co-authored-by: ziv <xiaozheng@tuya.com>
2022-08-06 18:12:33 +08:00
xtan 1ed8f38833
feat: add first trigger time (#1086)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-08-04 19:29:44 +08:00
Ulric Qin bb17751a81 fix typo 2022-08-02 12:21:01 +08:00
ulricqin a8dcb1fe83
add retry controller for poster (#1082) 2022-08-02 12:20:02 +08:00
Ulric Qin 1ea30e03a4 check user exists when refresh token 2022-08-01 14:44:22 +08:00
xtan c78c8d07f2
refactor: error info return (#1077)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-07-29 17:38:03 +08:00
Ulric Qin 8fe9e57c03 Merge branch 'main' of github.com:ccfos/nightingale 2022-07-29 17:35:49 +08:00
Ulric Qin 64646d2ace refactor linux dashboard 2022-07-29 17:35:23 +08:00
ning e747e73145 add debug log for ldap login 2022-07-29 15:38:45 +08:00
xtan 896f85efdf
refactor: add error log (#1076)
* refactor: add error log

* refactor: update error log

* refactor: fix error log

Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-07-29 11:41:39 +08:00
ulricqin 7c351e09e5
add api: /board/:bid/pure (#1073) 2022-07-27 14:30:35 +08:00