master
conf 63 lines 2.43 KB
Raw
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 # helper: total pull rate over 5 minutes (used as denominator for failure ratio)
4
5 template: am_container_registry_pull_total
6 on: azure_monitor.container_registry.pull_count
7 class: Workload
8 type: Containers
9 component: Azure ACR
10 lookup: average -5m unaligned of total
11 units: pulls/s
12 every: 1m
13 info: Total image pull rate on ACR ${label:resource_name}
14
15 # Pull failure ratio: fires only when there is meaningful pull traffic
16
17 template: am_container_registry_pull_failures
18 on: azure_monitor.container_registry.pull_count
19 class: Errors
20 type: Containers
21 component: Azure ACR
22 lookup: average -5m unaligned of successful
23 calc: ($am_container_registry_pull_total > 0.01) ? (($am_container_registry_pull_total - $this) * 100 / $am_container_registry_pull_total) : (0)
24 units: %
25 every: 1m
26 warn: $this > (($status >= $WARNING) ? (1) : (5))
27 crit: $this > (($status == $CRITICAL) ? (5) : (15))
28 delay: down 5m multiplier 1.5 max 1h
29 summary: ACR pull failures on ${label:resource_name}
30 info: Percentage of failed image pulls on ACR ${label:resource_name} \
31 in ${label:resource_group} (${label:region})
32 to: sysadmin
33
34 # helper: total push rate over 5 minutes (used as denominator for failure ratio)
35
36 template: am_container_registry_push_total
37 on: azure_monitor.container_registry.push_count
38 class: Workload
39 type: Containers
40 component: Azure ACR
41 lookup: average -5m unaligned of total
42 units: pushes/s
43 every: 1m
44 info: Total image push rate on ACR ${label:resource_name}
45
46 # Push failure ratio: fires only when there is meaningful push traffic
47
48 template: am_container_registry_push_failures
49 on: azure_monitor.container_registry.push_count
50 class: Errors
51 type: Containers
52 component: Azure ACR
53 lookup: average -5m unaligned of successful
54 calc: ($am_container_registry_push_total > 0.01) ? (($am_container_registry_push_total - $this) * 100 / $am_container_registry_push_total) : (0)
55 units: %
56 every: 1m
57 warn: $this > (($status >= $WARNING) ? (1) : (5))
58 crit: $this > (($status == $CRITICAL) ? (5) : (15))
59 delay: down 5m multiplier 1.5 max 1h
60 summary: ACR push failures on ${label:resource_name}
61 info: Percentage of failed image pushes on ACR ${label:resource_name} \
62 in ${label:resource_group} (${label:region})
63 to: sysadmin