Commit Graph

124 Commits

Author SHA1 Message Date
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
xtan fbff60eefb
docs: pg init sql (#1210)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-10-20 12:32:13 +08:00
Ulric Qin 5d4acb6cc3 update sql 2022-10-19 12:25:50 +08:00
Ulric Qin 537d5d2386 add newline for categraf config.toml 2022-09-17 09:24:19 +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
xtan 7209da192f
docs: fix pg init sql (#1154)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-09-15 18:28:09 +08:00
Ulric Qin 98f3508424 add configuration ForceUseServerTS 2022-09-09 13:44:50 +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
xtan e4e48cfda0
docs: pg init sql (#1142)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-09-03 18:59:31 +08:00
kongfei 1e9bd900e9 update notify.py 2022-08-31 17:55:26 +08:00
kongfei b82f646636 update configurarion in docker 2022-08-31 15:37:34 +08:00
Ulric Qin 8c45479c02 add primary key 2022-08-29 11:27:53 +08:00
Ulric Qin 940313bd4e use big nodata interval 2022-08-27 18:15:56 +08:00
xiaoziv 5057cd0ae6
add id column for table user_group_member and role_operation (#1126)
Co-authored-by: Ziv <xiaozheng@tuya.com>
2022-08-27 10:40:11 +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
xtan fe68cebbf9
docs: sync pg init sql (#1122)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-08-19 15:57:06 +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
JellyTony 635369e3fd
Update docker-compose.yaml (#1107)
* Update docker-compose.yaml

* Update docker-compose.yaml

Co-authored-by: ulricqin <ulricqin@qq.com>
2022-08-12 13:16:02 +08:00
xiaoziv 48d24c79d6
use slim base image (#1105)
Co-authored-by: ziv <xiaozheng@tuya.com>
2022-08-11 19:35:33 +08:00
Ulric Qin 23d7e5a7de add disk_util for target table 2022-08-10 17:05:29 +08:00
Ulric Qin f18ed76593 escape TargetMetrics 2022-08-09 20:07:17 +08:00
Ulric Qin 9b3a9f29d9 extract promql to webapi.conf 2022-08-09 20:01:54 +08:00
ning bbb35d36be fix: categraf panic when use docker compose 2022-08-09 10:44:18 +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
kongfei605 ba0eafa065
docker compose use latest version of n9e and categraf (#1079) 2022-07-29 17:38:28 +08:00
hwloser 04cb501ab4
[fix] fix the docker problem of apple chip (#1060)
Co-authored-by: huanwei <huanwei@huanweideMacBook-Pro.local>
2022-07-21 14:46:27 +08:00
Ulric Qin cbd416495c modify server.conf in docker env 2022-07-11 13:04:04 +08:00
xtan f4368302ea
fix: pg sql for recording rule (#1034)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-07-07 15:53:12 +08:00
kongfei605 01e611a9f9
auto release with github action (#1032)
* auto release with github action

* build arm64 artifacts
2022-07-07 14:17:23 +08:00
ulricqin 2ef541cdd7
refactor recording rule and and field disabled (#1022) 2022-07-06 17:21:14 +08:00
Ulric Qin c193b8abd4 remove drop table sql 2022-07-06 16:08:24 +08:00
Tripitakav 1304a4630b
Add recording rule (#1015)
* add prometheus recording rules

* fix recording rule sql

* add record rule note

* fix copy error

* add some regx

Co-authored-by: 尚承志 <chengzhi.shang@longbridge.sg>
2022-07-06 15:58:08 +08:00
UlricQin bfe340d24d upgrade 5.9.4 2022-07-05 16:54:15 +08:00
xtan a9288e376d
feat: persist notify cur number (#1013)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-07-05 16:42:20 +08:00
Ulric Qin 217f52294e update categraf image version to v0.1.9 2022-06-27 15:06:14 +08:00
Ulric Qin f9b2675077 upgrade 5.9.3 2022-06-27 15:01:34 +08:00
Ulric Qin df5a3a37f2 refactor docker-compose.yaml for categraf 2022-06-22 10:41:59 +08:00
xtan 5ec14c588b
Feat:update docker-compose from telegraf to categraf (#992)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-06-22 10:25:57 +08:00
Ulric Qin d2ef68daac upgrade 5.9.2 2022-06-15 14:40:43 +08:00
xtan 60c842c704
fix: NotifyMaxNumber for postgres db (#978)
* fix: NotifyMaxNumber for postgres db

* fix: sql for pg

Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-06-13 10:56:14 +08:00
Ulric Qin f6fd6aed7f add some categraf alerts.json 2022-06-11 17:54:52 +08:00
Ulric Qin cb92368e5b add categraf dashboard 2022-06-11 17:40:43 +08:00
Ulric Qin c951f7d822 support max notify number 2022-06-10 16:26:53 +08:00
xtan c62b9edf87
fix:pg数据库脚本同步 (#974)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-06-06 11:48:57 +08:00
ning 0e5aea40e8 Merge branch 'main' of github.com:ccfos/nightingale 2022-06-02 11:07:40 +08:00
ning 1dbfcd3dc8 refactor: service api 2022-06-02 11:07:31 +08:00
xtan a4ef5fca46
pg数据库初始化脚本字段同步 (#969)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-06-01 19:57:17 +08:00
xtan f6591e80ea
Feat:提供基于Postgres的数据库初始化脚本 (#967)
Co-authored-by: tanxiao <tanxiao@asiainfo.com>
2022-05-31 18:06:42 +08:00
Ulric Qin ce35e23a0f modify alert rule verify 2022-05-31 13:08:09 +08:00