Skip to content

Commit 8983660

Browse files
committed
feat: querier add alert record
1 parent 95b652d commit 8983660

20 files changed

Lines changed: 302 additions & 17 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Field , DBField , Type , Category , Permission
2+
log_count , , counter , Throughput , 111
3+
row , , other , Other , 111
4+
metric_value , metric_value , counter , metrics , 111
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Field , DisplayName , Unit , Description
2+
log_count , 日志总量 , 个 ,
3+
row , 行数 , 个 ,
4+
metric_value , 告警值 , ,
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Field , DisplayName , Unit , Description
2+
log_count , Log Count , ,
3+
row , Row Count , ,
4+
metric_value , MetricValue , ,
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Value , DisplayName , Description
2+
0 , 持续中 ,
3+
1 , 已结束 ,
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Value , DisplayName , Description
2+
0 , Ongoing ,
3+
1 , Ended ,

server/querier/db_descriptions/clickhouse/tag/event/alert_event

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ _query_region , _query_region , _query_region
7575
trigger_threshold , trigger_threshold , trigger_threshold , string , , Event Info , 111 , 0 ,
7676
metric_unit , metric_unit , metric_unit , string , , Event Info , 111 , 0 ,
7777
metric_value_str , metric_value_str , metric_value_str , string , , Event Info , 111 , 0 ,
78+
event_id , event_id , event_id , string , , Event Info , 111 , 0 ,
79+
start_time , start_time , start_time , int , , Event Info , 111 , 0 ,
80+
end_time , end_time , end_time , int , , Event Info , 111 , 0 ,
81+
duration , duration , duration , int , , Event Info , 111 , 0 ,
82+
state , state , state , int_enum , event_state , Event Info , 111 , 0 ,
83+
alert_time , alert_time , alert_time , int , , Event Info , 111 , 0 ,

server/querier/db_descriptions/clickhouse/tag/event/alert_event.ch

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ _query_region , 查询区域 ,
7575
trigger_threshold , 告警阈值 ,
7676
metric_unit , 告警值单位 ,
7777
metric_value_str , 告警值 ,
78+
event_id , 事件 ID ,
79+
start_time , 开始时间 ,
80+
end_time , 结束时间 ,
81+
duration , 持续时间 ,
82+
state , 状态 ,
83+
alert_time , 告警时间 ,

server/querier/db_descriptions/clickhouse/tag/event/alert_event.en

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ _query_region , QueryRegion ,
7575
trigger_threshold , TriggerThreshold ,
7676
metric_unit , MetricUnit ,
7777
metric_value_str , MetricValue ,
78+
event_id , Event ID ,
79+
start_time , Start Time ,
80+
end_time , End Time ,
81+
duration , Duration ,
82+
state , State ,
83+
alert_time , Alert Time ,
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Name , ClientName , ServerName , Type , EnumFile , Category , Permission , Deprecated
2+
time_str , time_str , time_str , time , , Timestamp , 111 , 0
3+
_id , _id , _id , id , , Event Info , 111 , 0
4+
time , time , time , time , , Event Info , 111 , 0
5+
6+
region , region_0 , region_1 , resource , , Universal Tag , 110 , 0 , 110
7+
az , az_0 , az_1 , resource , , Universal Tag , 110 , 0 , 110
8+
host , host_0 , host_1 , resource , , Universal Tag , 100 , 0 , 110
9+
chost , chost_0 , chost_1 , resource , , Universal Tag , 111 , 0 , 110
10+
vpc , vpc_0 , vpc_1 , resource , , Universal Tag , 111 , 0 , 110
11+
l2_vpc , l2_vpc_0 , l2_vpc_1 , resource , , Universal Tag , 110 , 0 , 110
12+
subnet , subnet_0 , subnet_1 , resource , , Universal Tag , 111 , 0 , 110
13+
router , router_0 , router_1 , resource , , Universal Tag , 110 , 0 , 110
14+
dhcpgw , dhcpgw_0 , dhcpgw_1 , resource , , Universal Tag , 110 , 0 , 110
15+
lb , lb_0 , lb_1 , resource , , Universal Tag , 110 , 0 , 110
16+
lb_listener , lb_listener_0 , lb_listener_1 , resource , , Universal Tag , 110 , 0 , 110
17+
natgw , natgw_0 , natgw_1 , resource , , Universal Tag , 110 , 0 , 110
18+
redis , redis_0 , redis_1 , resource , , Universal Tag , 110 , 0 , 110
19+
rds , rds_0 , rds_1 , resource , , Universal Tag , 110 , 0 , 110
20+
pod_cluster , pod_cluster_0 , pod_cluster_1 , resource , , Universal Tag , 111 , 0 , 110
21+
pod_ns , pod_ns_0 , pod_ns_1 , resource , , Universal Tag , 111 , 0 , 110
22+
pod_node , pod_node_0 , pod_node_1 , resource , , Universal Tag , 111 , 0 , 110
23+
pod_ingress , pod_ingress_0 , pod_ingress_1 , resource , , Universal Tag , 111 , 0 , 110
24+
pod_service , pod_service_0 , pod_service_1 , resource , , Universal Tag , 111 , 0 , 110
25+
pod_group_type , pod_group_type_0 , pod_group_type_1 , int , , Universal Tag , 111 , 0 , 110
26+
pod_group , pod_group_0 , pod_group_1 , resource , , Universal Tag , 111 , 0 , 110
27+
pod , pod_0 , pod_1 , resource , , Universal Tag , 111 , 0 , 110
28+
service , service_0 , service_1 , resource , , Universal Tag , 111 , 1 , 110
29+
auto_instance_type , auto_instance_type_0 , auto_instance_type_1 , int , , Universal Tag , 111 , 0 , 110
30+
auto_instance , auto_instance_0 , auto_instance_1 , resource , , Universal Tag , 111 , 0 , 110
31+
auto_service_type , auto_service_type_0 , auto_service_type_1 , int , , Universal Tag , 111 , 0 , 110
32+
auto_service , auto_service_0 , auto_service_1 , resource , , Universal Tag , 111 , 0 , 110
33+
gprocess , gprocess_0 , gprocess_1 , resource , , Universal Tag , 111 , 0 , 110
34+
tap_port_host , tap_port_host , tap_port_host , resource , , Universal Tag , 111 , 1 , 110
35+
tap_port_chost , tap_port_chost , tap_port_chost , resource , , Universal Tag , 111 , 1 , 110
36+
tap_port_pod_node , tap_port_pod_node , tap_port_pod_node , resource , , Universal Tag , 111 , 1 , 110
37+
capture_nic_host , capture_nic_host , capture_nic_host , resource , , Universal Tag , 111 , 0 , 110
38+
capture_nic_chost , capture_nic_chost , capture_nic_chost , resource , , Universal Tag , 111 , 0 , 110
39+
capture_nic_pod_node , capture_nic_pod_node , capture_nic_pod_node , resource , , Universal Tag , 111 , 0 , 110
40+
host_ip , host_ip_0 , host_ip_1 , resource , , Universal Tag , 111 , 0 , 110
41+
host_hostname , host_hostname_0 , host_hostname_1 , resource , , Universal Tag , 111 , 0 , 110
42+
chost_ip , chost_ip_0 , chost_ip_1 , resource , , Universal Tag , 111 , 0 , 110
43+
chost_hostname , chost_hostname_0 , chost_hostname_1 , resource , , Universal Tag , 111 , 0 , 110
44+
pod_node_ip , pod_node_ip_0 , pod_node_ip_1 , resource , , Universal Tag , 111 , 0 , 110
45+
pod_node_hostname , pod_node_hostname_0 , pod_node_hostname_1 , resource , , Universal Tag , 111 , 0 , 110
46+
47+
ip , ip_0 , ip_1 , ip , , Network Layer , 111 , 0 , 110
48+
is_internet , is_internet_0 , is_internet_1 , bool , , Network Layer , 111 , 0 , 110
49+
province , province_0 , province_1 , string , , Network Layer , 111 , 0 , 110
50+
51+
tcp_flags_bit , tcp_flags_bit_0 , tcp_flags_bit_1 , bit_enum , tcp_flags_bit , Transport Layer , 111 , 0 , 110
52+
53+
l2_end , l2_end_0 , l2_end_1 , bool , , Capture Info , 111 , 0 , 110
54+
l3_end , l3_end_0 , l3_end_1 , bool , , Capture Info , 111 , 0 , 110
55+
nat_real_ip , nat_real_ip_0 , nat_real_ip_1 , ip , , Capture Info , 111 , 0 , 110
56+
nat_real_port , nat_real_port_0 , nat_real_port_1 , int , , Capture Info , 111 , 0 , 110
57+
58+
process_id , process_id_0 , process_id_1 , int , , Service Info , 111 , 0 , 110
59+
process_kname , process_kname_0 , process_kname_1 , string , , Service Info , 111 , 0 , 110
60+
61+
k8s.label , k8s.label_0 , k8s.label_1 , map , , Custom Tag , 111 , 0 , 110
62+
k8s.annotation , k8s.annotation_0 , k8s.annotation_1 , map , , Custom Tag , 111 , 0 , 110
63+
k8s.env , k8s.env_0 , k8s.env_1 , map , , Custom Tag , 111 , 0 , 110
64+
cloud.tag , cloud.tag_0 , cloud.tag_1 , map , , Custom Tag , 111 , 0 , 110
65+
os.app , os.app_0 , os.app_1 , map , , Custom Tag , 111 , 0 , 110
66+
biz_service.group , biz_service.group_0 , biz_service.group_1 , map_item , , Custom Tag , 111 , 0 , 110
67+
68+
user , user , user , resource , , Universal Tag , 111 , 0 ,
69+
alert_policy , alert_policy , alert_policy , resource , , Universal Tag , 110 , 0 ,
70+
policy_type , policy_type , policy_type , int_enum , policy_app_type , Alarm Info , 111 , 0 ,
71+
event_level , event_level , event_level , int_enum , event_level , Alarm Info , 111 , 0 ,
72+
target_tags , target_tags , target_tags , string , , Event Info , 111 , 0 ,
73+
_target_uid , _target_uid , _target_uid , string , , Event Info , 111 , 0 , 111
74+
_query_region , _query_region , _query_region , string , , Event Info , 111 , 0 ,
75+
trigger_threshold , trigger_threshold , trigger_threshold , string , , Event Info , 111 , 0 ,
76+
metric_unit , metric_unit , metric_unit , string , , Event Info , 111 , 0 ,
77+
metric_value_str , metric_value_str , metric_value_str , string , , Event Info , 111 , 0 ,
78+
event_id , event_id , event_id , string , , Event Info , 111 , 0 ,

0 commit comments

Comments
 (0)