Commit Graph

44 Commits

Author SHA1 Message Date
屈轩
eb82b9d9ca fix: upgrade go 1.24 (#23241) 2025-09-05 18:26:33 +08:00
Zexi Li
b931b70911 Monitor worker alert (#22729)
* fix(monitor): GetMetricMeasurement 接口只查询过去30m的数据

避免数据过多导致 victoria-metrics 报错

* fix(monitor): wildchar of alert group by field
2025-06-18 14:25:27 +08:00
屈轩
52839ca149 fix(docs): update swagger api (#22599) 2025-05-26 10:51:19 +08:00
Zexi Li
8a3c173631 fix(monitor): not filter status tag key (#22595) 2025-05-23 09:59:35 +08:00
Zexi Li
624d732183 fix(monitor): return measurements info from db directly (#22511) 2025-05-12 17:17:28 +08:00
Zexi Li
984fea1b24 fix(monitor): getTagValues no data (#22433) 2025-04-17 11:09:19 +08:00
Zexi Li
d369533f6d fix(monitor): always skip_check_series for metric-measurement api (#22143) 2025-02-19 19:57:22 +08:00
Zexi Li
e3d343f464 fix(monitor): split tags and cloud_tags (#22114) 2025-02-18 18:29:22 +08:00
Zexi Li
5246ba11ac fix(monitor): raw_name of influxdb query (#21659) 2024-11-22 15:52:39 +08:00
Zexi Li
bdc9d8e289 feat(host,monitor): 支持容器相关gpu设备监控采集 (#21588) 2024-11-14 14:23:25 +08:00
Zexi Li
ef1baa1565 fix(monitor): fetch measurements from victoriametrics 2023-12-13 19:01:22 +08:00
Zexi Li
92b35fa44a fix(monitor): make simple-query API adapt to victoriametrics 2023-12-08 10:05:47 +08:00
Zexi Li
9a9414452b feat(monitor,region,host,cloudmon): support VictoriaMetrics as TSDB backend 2023-11-10 15:36:02 +08:00
Zexi Li
fca6a97886 fix(monitor): wrong tag filter when get metric measurement 2023-04-13 11:40:44 +08:00
Zexi Li
adca8bdcf7 fix(monitor): skip check series options 2023-03-01 15:52:43 +08:00
Zexi Li
792bfe3464 fix(monitor): query resources according by listing region resources (#16074) 2023-03-01 00:03:29 +08:00
Jian Qiu
5d9d253328 fix: mcclient code cleanup 20221106 (#15310)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-07 02:19:24 +08:00
QIU Jian
293afd2e69 fix: remove apiversion param from session 2022-08-25 09:43:50 +08:00
ioito
3dfdcd18fc fix(region): remove nullable tag 2022-03-09 11:49:59 +08:00
zhaoxiangchun
1e08a51999 fix(monitor,host): replace space to '+' when write to influxdb and replace '+' to space when query
1.写入influxdb时tag 中不允许存在空格
2021-02-07 14:57:14 +08:00
--global
567fc991cb fix(monitor): sore reture info:resourceType,measurement
1.对资源类型和对应的measurement进行排序输出
2020-12-28 21:37:27 +08:00
zhaoxiangchun
0a0b73406d add resource type
1.支持前端通过资源类型进行过滤分类
2020-11-05 11:46:14 +08:00
Zexi Li
d011cbfc87 Merge pull request #8474 from zexi/hotfix/monitor-datasource-ep
monitor: set default influxdb datasource by endpoint type
2020-10-24 13:06:55 +08:00
Zexi Li
409c67e24b monitor: set default influxdb datasource by endpoint type 2020-10-23 20:07:15 +08:00
zhaoxiangchun
b4a83dc15e bugfix:
1.资源报警增加websocket 消息通知:admin用户
2.统一influxdb中查询到的tag展示
2020-10-23 17:57:20 +08:00
yunion-ci-robot
20009e74bc Merge pull request #8051 from zhaoxiangchun/bugfix/zxc-commonalert
commonalert bugfix 3.4
2020-09-24 10:24:19 +08:00
zhaoxiangchun
475c81c58c commonalert bugfix 3.4 2020-09-23 21:41:13 +08:00
Yousong Zhou
50eafd957d monitor: error fmt 2020-09-23 18:42:53 +08:00
zhaoxiangchun
f58bca93db common alert bugfix/3.4 2020-09-22 11:36:17 +08:00
zhaoxiangchun
a624625520 commonalet bugfix:
1.报警接受人通知渠道调整:由notify中解释发送到对应的channel
2.报警恢复增加对应的evalmatch,保存对应的metricvalue
3.报警记录中增加description相关信息
4.其他代码调整
2020-09-09 18:16:34 +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
zhaoxiangchun
7cd1f1de5a 新增优化建议:
空闲的rds,redis,oss
安全组规则为all in 的主机
读写权限为开放读,写的对象存储
2020-07-10 20:24:32 +08:00
tangbin
47bb16e517 update vendor 2020-07-09 13:23:00 +08:00
zhaoxiangchun
98d2e489ea 增加influxdb的tag 的一些filter 2020-07-04 19:23:40 +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
yunion-ci-robot
a4b44d040b Merge pull request #6629 from zhaoxiangchun/feature/zxc-unified-monitor
统一监控接口
2020-06-08 16:16:07 +08:00
Zexi Li
9f4d4a450e refactor ITableSpec signature with context 2020-06-08 11:31:00 +08:00
zhaoxiangchun
86e687015f 修改框架查询influxdb的时间单位
epoch=ms,与以前虚拟机监控时间单位进行统一
2020-06-08 10:06:00 +08:00
zhaoxiangchun
3f63e4737a 统一监控接口
1.通过前端选择measurement等数据完成对influxdb指标的的查询
2.支持同时查询多个query。
2020-06-01 17:01:39 +08:00
Zexi Li
95a58cc606 implement generic service informer 2020-05-29 19:59:34 +08:00
zhaoxiangchun
cc3f5ed196 基于监控数据的优化建议 2020-05-13 22:24:13 +08:00
Zexi Li
5645e4e15a add monitor service 2020-03-02 20:00:08 +08:00