Commit Graph

46 Commits

Author SHA1 Message Date
Jian Qiu
cc750955be fix: get user ids by role ids in scope (#15686)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-02 23:44:50 +08:00
Jian Qiu
21716cefb5 fix: remove mutual dependency of cloudmux on onecloud (#15621)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-27 01:21:26 +08:00
Jian Qiu
ec90862764 fix: remove dependency of appctx on i18n (#15615)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-23 23:44:52 +08:00
Zexi Li
4fca491f73 fix(monitor): monitor error message 2022-10-08 11:54:21 +08:00
Jian Qiu
598d0800dd fix: support huawei sms service (#14895)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-09-01 14:49:17 +08:00
QIU Jian
293afd2e69 fix: remove apiversion param from session 2022-08-25 09:43:50 +08:00
lzx
1122aeaa16 fix(monitor): onecloud notifiers role_ids validation 2022-07-14 18:16:21 +08:00
Zexi Li
0ec0a182c0 fix(monitor): balancer source specified host (#14637) 2022-07-14 12:21:51 +08:00
Zexi Li
ed2a5ea586 feat(monitor): common alert notify by role scope 2022-07-13 17:53:37 +08:00
Zexi Li
e5f01ad535 feat(monitor): VMs of host loadbalance 2022-06-23 00:25:03 +08:00
ioito
4bcf2cf99b fix(region): ctx lock panic 2022-04-07 14:54:29 +08:00
ioito
03a494194b fix(region): curl vender update 2022-03-30 11:02:40 +08:00
Qu Xuan
06dc1c1b87 fix(common): split mcclient modules by service 2021-11-05 19:24:50 +08:00
zhaoxiangchun
20e16dc86b fix(monitor): onecloud notifier send sys when user_ids and robot_ids
length == 0
2021-11-04 15:42:08 +08:00
zhaoxiangchun
b499eaeb06 fix(monitor): monitor alert support multi robot
1. 机器人下放到域后监控报警支持
2021-09-26 16:34:13 +08:00
zhaoxiangchun
e37ee880f9 feat(monitor): alert policy filter by res_type
1.增加资源类型的过滤处理
2.报警消息内容处理
2021-03-02 16:11:32 +08:00
zhaoxiangchun
0e7a043502 feat(monitor): monitor add trigger value when send notify info
1.监控消息中增加触发值
2021-02-19 10:28:46 +08:00
zhaoxiangchun
4e0ce5b9e8 fix(monitor): 3.7 nodata and alertOverview fix
1.nodata相关逻辑调整
2.监控总览视图穿透,报警数量不一致问题修复
2021-02-04 20:52:53 +08:00
zhaoxiangchun
352fc030e4 feat(monitor): alert add silent period param
1. 报警静默期支持
2021-02-03 13:06:13 +08:00
zhaoxiangchun
70c9dd397f feat(monitor): meter相关报警内容处理
1. meter 相关单位处理
2. 报警静默配置
3. meter 短信模版
2021-02-02 23:34:17 +08:00
zhaoxiangchun
ac0bb066d5 fix(monitor): fix alert duration
1.修改报警连续周期逻辑
2021-02-02 23:11:03 +08:00
zhaoxiangchun
e2a5addc2f fix(monitor): modify nodata feishu notifyinfo; fix send email err
1.修改nodata报警消息内容
2.修复发送邮件数量异常的bug
2021-01-29 13:05:24 +08:00
zhaoxiangchun
5c2d88c6d9 feat(monitor): monitor alert policy add mobile notify
1.报警策略增加短信通知
2021-01-28 11:00:46 +08:00
--global
4ac6d48c65 fix(monitor): monitor notify international and 3.6 bugfix
1.修复项目下无法查看报警记录
2.修复报警策略切换所属范围signature失败
3.国际化问题处理
2020-12-26 09:52:59 +08:00
zhaoxiangchun
c39540d5ca commonalert bugfix:
1.修改消息模版内容:对matches信息进行聚合只返回对应的name信息。解决body消息超过限制
2.报警资源:每次以策略匹配的最新matches为标准。进行updateOrCreate 和
  delete操作。

影响范围:消息模版、报警资源数量
2020-11-14 18:18:25 +08:00
zhaoxiangchun
a9c3c5bfdc commonalert bugfix:
1. 报警消息中过滤onecloud信息
2. 报警记录中报警恢复match 信息根据alertingMatches进行过滤处理
2020-11-08 17:09:17 +08:00
zhaoxiangchun
475c81c58c commonalert bugfix 3.4 2020-09-23 21:41:13 +08:00
zhaoxiangchun
f58bca93db common alert bugfix/3.4 2020-09-22 11:36:17 +08:00
zhaoxiangchun
9a2267230d suggest rule modify:
1.规则由后端初始化,默认禁用
2.规则period默认为12h,扫描范围timeFrom默认为14d
3.增加notify相关的模版文件
4.更改消息重复发送的问题
2020-09-16 12:08:03 +08:00
zhaoxiangchun
a624625520 commonalet bugfix:
1.报警接受人通知渠道调整:由notify中解释发送到对应的channel
2.报警恢复增加对应的evalmatch,保存对应的metricvalue
3.报警记录中增加description相关信息
4.其他代码调整
2020-09-09 18:16:34 +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
zhaoxiangchun
5e0cb93199 修改报警消息模版:
1.模版中使用ftm.sprintf
  对float类型进行转换,避免消息中数值以十进制的指数次格式显示,提高可读性
2.增加text/tempalte,解决飞书等消息中消息内容被编码的问题
2020-07-24 22:35:24 +08:00
zhaoxiangchun
f20a87a5db Modify alert structure and inherit scoperesource 2020-06-21 12:18:22 +08:00
zhaoxiangchun
6c66185bd8 统一报警模块 2020-06-21 11:39:23 +08:00
zhaoxiangchun
0a7b381cf6 类型是onecloud的notifier增加webconsole的alert 2020-05-27 22:10:33 +08:00
zhaoxiangchun
4a784c1d7f 修复当prestate=alerting,newstate=alerting的情况无法触发notify的问题 2020-05-21 13:06:22 +08:00
Rain
e67effaf3f fix/monitor: AutoScalingNotifier.ShouldNotify should call NotifierBase.ShouldNotify 2020-04-30 11:26:02 +08:00
zhaoxiangchun
e81334c0a7 monitor,对于监控数据nodata,默认不发送邮件 2020-04-29 15:17:54 +08:00
zhaoxiangchun
6c3daec4ce 优化邮件格式
1.邮件主题中的报警级别和web页面进行对应
2.向onecloud发送邮件时,通过html/template进行格式化
2020-04-20 20:34:52 +08:00
Rain
690fb0c95d Add copyright and format code 2020-04-04 21:10:57 +08:00
Rain
b9ed3c1bc2 feature: scaling_group support alert 2020-04-04 21:10:51 +08:00
Zexi Li
1db65092ef monitor: support support extra params in alertnotification joint object 2020-03-31 17:54:44 +08:00
Qiu Jian
859177c85e fix: replace deprecated fields 2020-03-27 01:20:30 +08:00
Qiu Jian
732dcdcb61 feature: system resource domainize 2020-03-27 01:20:29 +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