master
conf 76 lines 3.03 KB
Raw
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 # --- CPU ---
4 # CPU usage in millicores. Default thresholds assume a 1 vCPU (1000 millicores) allocation.
5 # Adjust warn/crit values to match your container group CPU allocation:
6 # 2 vCPU = 2000 millicores, 4 vCPU = 4000 millicores, etc.
7
8 template: am_container_instances_cpu_usage
9 on: azure_monitor.container_instances.cpu_usage
10 class: Utilization
11 type: Containers
12 component: Azure Container Instances
13 lookup: average -5m unaligned of average
14 units: millicores
15 every: 1m
16 warn: $this > (($status >= $WARNING) ? (850) : (900))
17 crit: $this > (($status == $CRITICAL) ? (900) : (950))
18 delay: down 5m multiplier 1.5 max 1h
19 summary: Container CPU on ${label:resource_name}
20 info: Average CPU usage of container group ${label:resource_name} \
21 in ${label:resource_group} (${label:region})
22 to: sysadmin
23
24 # --- Memory ---
25 # Memory usage in bytes. Default thresholds assume a 1.5 GiB memory allocation.
26 # Adjust warn/crit values to match your container group memory allocation.
27 # 1.5 GiB: warn ~1.3 GiB (1395864371), crit ~1.4 GiB (1503238553)
28 # 4.0 GiB: warn ~3.4 GiB (3650722201), crit ~3.6 GiB (3865470566)
29
30 template: am_container_instances_memory_usage
31 on: azure_monitor.container_instances.memory_usage
32 class: Utilization
33 type: Containers
34 component: Azure Container Instances
35 lookup: average -5m unaligned of average
36 units: bytes
37 every: 1m
38 warn: $this > (($status >= $WARNING) ? (1288490189) : (1395864371))
39 crit: $this > (($status == $CRITICAL) ? (1395864371) : (1503238553))
40 delay: down 5m multiplier 1.5 max 1h
41 summary: Container memory on ${label:resource_name}
42 info: Average memory usage of container group ${label:resource_name} \
43 in ${label:resource_group} (${label:region})
44 to: sysadmin
45
46 # --- Network ---
47
48 template: am_container_instances_network_rx
49 on: azure_monitor.container_instances.network
50 class: Workload
51 type: Containers
52 component: Azure Container Instances
53 lookup: average -5m unaligned of received
54 units: bytes/s
55 every: 1m
56 warn: $this > (($status >= $WARNING) ? (100000000) : (125000000))
57 delay: down 5m multiplier 1.5 max 1h
58 summary: Container inbound traffic on ${label:resource_name}
59 info: High inbound network traffic on container group ${label:resource_name} \
60 in ${label:resource_group} (${label:region})
61 to: sysadmin
62
63 template: am_container_instances_network_tx
64 on: azure_monitor.container_instances.network
65 class: Workload
66 type: Containers
67 component: Azure Container Instances
68 lookup: average -5m unaligned of sent
69 units: bytes/s
70 every: 1m
71 warn: $this > (($status >= $WARNING) ? (100000000) : (125000000))
72 delay: down 5m multiplier 1.5 max 1h
73 summary: Container outbound traffic on ${label:resource_name}
74 info: High outbound network traffic on container group ${label:resource_name} \
75 in ${label:resource_group} (${label:region})
76 to: sysadmin