Skip to content

Commit c1ef8d5

Browse files
committed
Add prometheus rule osparc_ops_cpu_throttling_seconds
1 parent 1e6c6ea commit c1ef8d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

services/monitoring/prometheus/prometheus.rules.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ groups:
4242
rules:
4343
- record: osparc_autoscaling_machines_buffer
4444
expr: sum(swarm_node_info{instance=~"^ip-.*$"}) - ( sum(count_values("instance",node_boot_time_seconds{instance=~"^ip-.*$"})) OR clamp_max(absent(node_boot_time_seconds{instance=~"^ip-.*$"}),0) )
45+
- name: osparc_ops_cpu_throttling_seconds
46+
interval: 120s
47+
rules:
48+
- record: osparc_ops_cpu_throttling_seconds
49+
expr: sum by (name) (rate(container_cpu_cfs_throttled_seconds_total[5m])) > 0.2

0 commit comments

Comments
 (0)