release 3.5.3 HotFix
This commit is contained in:
@@ -375,4 +375,11 @@ INSERT INTO public.metric_meta2 (id,meta_name,description,expr,resource_type,ent
|
||||
INSERT INTO public.metric_meta2 (id,meta_name,description,expr,resource_type,entity_type,groupby_keys,in_use,anomaly_score,message) VALUES('event_alert_normal','Event Alert Normal','Event Alert Normal','count by (xm_clst_id, xm_namespace, involved_kind, involved_name, reason, type) (imxc_kubernetes_event_in_last_min{type=~"Normal", {filter} })','Event','Workload','','true','false','CLST:{{$labels.xm_clst_id}} NS:{{$labels.xm_namespace}} Reason : {{$labels.reason}} Level : {{$labels.type}} Name : {{$labels.involved_name}} ');
|
||||
INSERT INTO public.metric_meta2 (id,meta_name,description,expr,resource_type,entity_type,groupby_keys,in_use,anomaly_score,message) VALUES('event_alert_warning','Event Alert Warning','Event Alert Warning','count by (xm_clst_id, xm_namespace, involved_kind, involved_name, reason, type) (imxc_kubernetes_event_in_last_min{type=~"Warning", {filter} })','Event','Workload','','true','false','CLST:{{$labels.xm_clst_id}} NS:{{$labels.xm_namespace}} Reason : {{$labels.reason}} Level : {{$labels.type}} Name : {{$labels.involved_name}} ');
|
||||
|
||||
-- node-export 부분 node-agent 변경
|
||||
UPDATE public.metric_meta2 SET expr = '(100 - (avg by (xm_clst_id, xm_node_id, xm_entity_type)(clamp_max(rate(node_cpu_seconds_total{ name="node-agent", mode="idle", xm_entity_type="Node", {filter} }[1m]),1.0) * 100)))' WHERE id ='node_cpu_usage';
|
||||
UPDATE public.metric_meta2 SET expr = '(100 - (avg by (xm_clst_id)(clamp_max(rate(node_cpu_seconds_total{ name="node-agent", mode="idle", xm_entity_type="Node", {filter} }[1m]),1.0)) * 100))' WHERE id ='cluster_cpu_usage';
|
||||
UPDATE public.metric_meta2 SET expr = '(100 - (avg by (xm_clst_id, xm_node_id) (clamp_max(rate(node_cpu_seconds_total{name="node-agent", mode="idle", xm_entity_type="Node", {filter}}[1m]),1.0)) * 100)) * sum by(xm_clst_id, xm_node_id)(imxc_kubernetes_node_resource_capacity_cpu{{filter}}) / 100' WHERE id ='node_cpu_used';
|
||||
UPDATE public.metric_meta2 SET expr = 'avg by (xm_clst_id, xm_node_id, xm_entity_type) (rate(node_cpu_seconds_total{name="node-agent", mode="iowait", xm_entity_type="Node" , {filter}}[1m])) * 100' WHERE id ='node_cpu_iowait';
|
||||
UPDATE public.alert_rule_meta SET expr = '(100 - (avg by (xm_clst_id, xm_node_id, xm_entity_type) (rate(node_cpu_seconds_total{ name=''node-agent'', mode=''idle'', xm_entity_type=''Node'', {filter} }[1m])) * 100))' WHERE id = 97;
|
||||
UPDATE public.agent_install_file_info SET name = 'node-agent' WHERE id=4;
|
||||
commit;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user