Commit Graph

28 Commits

Author SHA1 Message Date
Zexi Li
8958913af2 fix(monitor): only query enabled host for alerting (#15297) 2022-11-07 02:17:18 +08:00
zhaoxiangchun
65f0f61430 feat(monitor): add dashboard and panel clone 2021-08-24 11:10:42 +08:00
zhaoxiangchun
b8bdcb0774 fix(monitor): fix monitor slow query
1. 使用apihelper 增量查询监控数据
2. 通过apihelper中set进行对应的资源过滤
2021-08-20 21:39:07 +08:00
Zexi Li
6ca9ef3e45 Merge pull request #11645 from zhaoxiangchun/feature/zxc-cloudmon-master
feat(cloudmon): add cloudmon component
2021-07-20 10:01:51 +08:00
zhaoxiangchun
8fa4e577dd feat(cloudmon): add cloudmon component 2021-07-16 12:20:52 +08:00
zhaoxiangchun
805c80370e feat(monitor): support monitor shield
1.报警屏蔽功能:
  1)以报警资源为基础需求中报警数据中拆分的要求
2021-07-14 12:20:11 +08:00
zhaoxiangchun
0a7c587117 feat(monitor): monitor alertRecord support set shield
1.报警记录支持设置屏蔽时间
2.报警记录展示重构
3.报警通知中过滤已经设置屏蔽的资源
2021-07-13 20:14:39 +08:00
zhaoxiangchun
4ac0042153 feat(monitor) 3.7 add monitor resource overview
1. 监控中增加资源统计
2. 资源在报警总览中的状态:
   init--未设置告警;alerting--发生告警;/attach--已关联策略并且报警消息正常
3.只涉及宿主机和虚拟机

https://bug.yunion.io/zentao/task-view-3130.html
2021-06-18 17:46:40 +08:00
zhaoxiangchun
e8442bea69 feat(monitor): get today alerting resource info
1.提供接口获取当前时间发生报警的资源统计
2020-12-31 20:00:19 +08:00
zhaoxiangchun
788a5df8bd feat(suggestion,apigateway): add analysispredict climc 2020-12-30 14:03:08 +08:00
zhaoxiangchun
d519be9ab1 modify monitor dashboard save:
1.panel和dashboard继承scoperesource。通过joint进行关联
2.dashboade 通过details
  参数控制是否返回所关联的panel信息。penel新建时需要此逻辑
3.依据scoperesource属性实现查询,创建的逻辑
2020-10-30 12:11:33 +08:00
zhaoxiangchun
444ff1901d bugfix: commonalert
1.报警消息中取消返回sql信息
2.commonalert 中支持top bottom 结构influxdb 查询
2020-10-19 23:05:27 +08:00
Zexi Li
31cf935dac monitor: add alert resource 2020-10-19 22:05:39 +08:00
zhaoxiangchun
af9e911fd0 modify suggest rule cli
1.增加perform config方法,方便修改默认规则:执行周期,扫描窗口的属性
2020-09-30 17:15:28 +08:00
zhaoxiangchun
6037c84a58 bugfix:commonalert
1.suggestrule cli 调整
2020-09-25 10:41:45 +08:00
zhaoxiangchun
c66ea1145d monitor commonalert bugfix (#7667)
* 统一监控查询面板保存

* commonalert bugfix
2020-09-01 10:43:35 +08:00
zhaoxiangchun
dd8a07f364 metric describe 接口 (#7381)
* metric describe 接口

1.初始化influxdb measurement和field到本地
2.更新measurement和field的display_name,以及unit等信息

description api modify:

3.增加初始化json文件
4.统一查询的list接口信息增加description信息,并为description子集
5.增加measurement的权限的过滤

* 统一监控功能:

1.模版调整:
 1)修改email template
 2)格式化消息结构中的报警value,增加单位,同时可以转换为合适的单位
 3)简化消息体中的tag信息:name,ip,brand,value

2.增加报警历史记录
 1)记录每条报警规则的,报警信息
2020-08-26 13:44:34 +08:00
Zexi Li
aa8177f531 climc: add cmd helper to reduce duplicate code 2020-08-19 18:49:02 +08:00
zhaoxiangchun
9214724557 修复统一报警bug
1.对系统内置的规则的处理,可以进行正确判断推送消息
2.一些初始化,validate的判断逻辑的修改
2020-07-24 11:06:52 +08:00
Zexi Li
7aa3c9ddec monitor: suggestsysalert add ignore action 2020-07-02 21:19:14 +08:00
Zexi Li
7a9662c6f5 monitor: support suggest rule alert config and add snapshot_unused
driver
2020-07-01 19:31:50 +08:00
Qiu Jian
1843ba334d feature: reorganize climc codes 2020-05-07 16:48:37 +08:00
zhaoxiangchun
89640938f0 新加diskunused的监控
1.suggestsys_const.go 中定义规则和资源列表中涉及到一些常量
2.suggestsysalart.go 1)新增一些列来匹配重用过滤;2)
进行删除相关操作时,通过task处理;
3.driverconfig.go 中包含目前driver中可以共用的函数
4.suggestsysruledrivers.go 调整driver interface 涉及的函数
2020-04-16 16:37:46 +08:00
zhaoxiangchun
a42e9c9462 优化建议功能-未使用的eip
1.通过cronman 调用eipUnused相关的driver,查询未使用的eip
2.依据对步骤1中的中的数据,对资源列表就行create、update、delete进行三种类型的操作

deal with comments

gencopyright

climc for SuggestSysRule and SuggestSysAlert

monitor: fix sysrule related models not generated

eip未使用的监控参数结构调整
2020-04-14 15:37:01 +08:00
Zexi Li
395f2af41d monitor: add paused api 2020-04-01 13:18:37 +08:00
Zexi Li
56976a8b0d monitor: add alert config helper 2020-03-31 16:17:12 +08:00
Zexi Li
1b54766c9c alert notification use joint model 2020-03-04 19:12:48 +08:00
Zexi Li
5645e4e15a add monitor service 2020-03-02 20:00:08 +08:00