Commit Graph

966 Commits

Author SHA1 Message Date
Ulric Qin de99077b32 code refactor: remove unused field(TagsLst) of MetricPoint 2021-08-22 08:45:29 +08:00
Ulric Qin e288a3d3a9 Merge branch 'master' of github.com:didi/nightingale 2021-08-21 21:52:47 +08:00
Ulric Qin 0588d39911 bugfix: handle status when create alert_rule 2021-08-21 21:52:08 +08:00
710leo 55ec76a23d refactor: fix conflicts 2021-08-20 19:52:37 +08:00
710leo a2eab9e5ab refactor: delete csrf check and some v1 api 2021-08-20 19:45:17 +08:00
Istil f651af970f
feat: support classpaths prefix tree display (#769) 2021-08-18 16:43:39 +08:00
Ulric Qin 1eecb324d0 code refactor: exec pull_prom early 2021-08-15 10:28:37 +08:00
Ulric Qin 60a964ae55 bugfix: for range goroutine 2021-08-15 10:08:08 +08:00
Ulric Qin a7cf8f9ec9 !1 fix judge prom
Merge pull request !1 from Ulric Qin/judge_prom_bugfix
2021-08-14 16:20:17 +00:00
Ulric Qin 0b4e3b9656 fix judge prom 2021-08-14 23:17:06 +08:00
710leo ca8a8701b4 fix: collect append tags 2021-08-13 16:01:33 +08:00
710leo 4ca83fcc1a docs: upgrade 5.0.0-rc5 2021-08-12 17:53:19 +08:00
710leo 509e1ef00a refactor: remove useless code 2021-08-12 17:41:57 +08:00
ning1875 42fc0527cb
1. Move the default ql to the configuration (#764)
2. add slowLogRecordSecond to  log slow query
3. Create a slice with a specified length to avoid dynamic expansion
4. slow query print fetch series time took and the result series num
2021-08-10 15:25:54 +08:00
UlricQin 8b508fc514 code refactor 2021-08-06 18:03:36 +08:00
ning1875 2f060cfb43
1. set Config.Heartbeat.LocalAddr when ip can not fetch by auto detect (#761)
2. upgrade snappy to v0.0.3 to avoid the following failure on Go 1.16
2021-08-06 12:19:36 +08:00
Istil 4eb79fb017
feat: support history alert events store (#760) 2021-08-06 12:16:32 +08:00
ning1875 c38d595cb8
1. fix CommonQuerySeries.Warning range nil pointer err (#759) 2021-08-05 11:04:50 +08:00
710leo e29407486d update service file 2021-08-04 22:33:43 +08:00
710leo 4d3ca94e4c docs: upgrade 5.0.0-rc4 2021-08-04 17:56:26 +08:00
710leo e27ec8136e refactor: remote write log print 2021-08-04 14:26:53 +08:00
ning1875 9383976918
1. delete recovery event from cache after event is really mark recovery (#758) 2021-08-04 12:14:47 +08:00
710leo 8764270f47 feat: support permission check api 2021-08-04 11:05:54 +08:00
Istil 2ef85d9aae
feat: support batch edit notify-users, notify-channels and append-tags of alert rule (#757) 2021-08-03 14:20:22 +08:00
201806060205 5064e5b0b1
feat: support batch edit notify groups of alert rule (#756) 2021-08-02 20:16:43 +08:00
ning1875 72244b1983
1. remove some todo (#755) 2021-08-02 17:37:55 +08:00
710leo e14d3eac4d refactor: get notify content by tpl 2021-08-01 18:32:36 +08:00
UlricQin 62cbe4a833 Merge branch 'master' of https://github.com/didi/nightingale 2021-07-30 16:03:44 +08:00
UlricQin 6040e79d50 sort classpaths of event 2021-07-30 16:03:25 +08:00
710leo ffe3dd6bca refactor: alert rule name duplicate check 2021-07-30 13:30:50 +08:00
710leo 853053f56d fix: alert rule put 2021-07-30 10:58:42 +08:00
710leo dde431b422 Merge branch 'master' of https://github.com/didi/nightingale 2021-07-30 10:38:54 +08:00
ning1875 e6cf77f34b
1. query nodata at one ts fill none (#753) 2021-07-30 10:19:03 +08:00
UlricQin 834a5e83ee Merge branch 'master' of https://github.com/didi/nightingale 2021-07-30 10:14:34 +08:00
UlricQin f2173bff26 log regexp checker 2021-07-30 10:14:17 +08:00
710leo c4b1da66d4 docs: change metric_description sql 2021-07-29 20:32:19 +08:00
ning1875 9c9f2973f8
1. fix remote write err assert on recoverableError (#749) 2021-07-28 12:11:36 +08:00
UlricQin 0c35f32c5c fix send_email 2021-07-27 18:31:50 +08:00
UlricQin f2e3e3dbf1 add WECOM url 2021-07-27 15:42:14 +08:00
李伟强 5045098c91
Update notify.py (#748) 2021-07-27 15:35:37 +08:00
ning1875 20e34bfe15
1. tag-pair support fuzzy matching search (#747) 2021-07-27 15:07:54 +08:00
dependabot[bot] 0f63feed22
build(deps): bump github.com/gin-gonic/gin from 1.6.3 to 1.7.0 (#746)
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.6.3 to 1.7.0.
- [Release notes](https://github.com/gin-gonic/gin/releases)
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gin-gonic/gin/compare/v1.6.3...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-27 15:06:58 +08:00
ning1875 ec6f3098bb
notify.py add sys.encoding to avoid coding error (#744) 2021-07-27 11:38:42 +08:00
UlricQin 53f08eae30
Update build.sh (#745) 2021-07-27 11:28:11 +08:00
ning1875 cade83f075
添加debug日志 (#743)
* 1. notify.py 支持安装channel反射发送
2. 支持钉钉群发送
3. 生成告警模板信息

* 1. notify.py 支持安装channel反射发送
2. 支持钉钉群发送
3. 增加二开说明

* 1. notify.py 用户创建一个虚拟的用户保存上述im群 的机器人token信息 user的contacts map中

* 1. notify.py alerts目录改为原来的

* 1. notify.py dingtalk send continue匹配

* 1. push型告警支持多条件 任意一个触发就触发

* 1. prometheus查询接口 tag-keys tag-values支持 params为空的情况

* 1. prometheus查询接口 ident匹配全部改为精确匹配
2. tagKey 提示改为tag_key

* 1. prometheus查询接口 支持instance_query 对外暴露

* 1. prometheus instance_query改名为instant-query
2. page group中去掉数据查询相关path

* 1. prometheus range_query 时间戳改为秒级
2. 查询支持传入分辨率参数

* 1. 新增jmx_exporter内置大盘

* 1. 新增blackbox_exporter内置大盘
2. 新增blackbox_exporter内置告警策略

* 1. 添加一些debug帮助定位恢复的告警在db event中删除的过程
2021-07-26 17:36:32 +08:00
710leo af93088d2f refactor: change collect config 2021-07-26 14:44:03 +08:00
710leo e396ad4f67 refactor: change collect config 2021-07-25 21:41:37 +08:00
Ulric Qin 979a77eafa simplify logs 2021-07-25 18:52:06 +08:00
UlricQin c0b42cf29a
bugfix: reuse error var in remoteWriteProm (#741)
* fix: reuse error var when remoteWritePost

* add debug log

* remove logs
2021-07-25 18:23:47 +08:00
710leo ae4f20bca1 Merge branch 'master' of https://github.com/didi/nightingale 2021-07-25 18:19:48 +08:00