| 1 | # you can disable an alarm notification by setting the 'to' line to: silent |
| 2 | |
| 3 | # ── Availability ───────────────────────────────────────────────────────────── |
| 4 | |
| 5 | template: am_appinsights_availability |
| 6 | on: azure_monitor.application_insights.availability_percentage |
| 7 | class: Availability |
| 8 | type: Other |
| 9 | component: Application Insights |
| 10 | lookup: average -5m unaligned of average |
| 11 | units: percentage |
| 12 | every: 1m |
| 13 | warn: $this < (($status >= $WARNING) ? (99.9) : (99)) |
| 14 | crit: $this < (($status == $CRITICAL) ? (99) : (90)) |
| 15 | delay: down 5m multiplier 1.5 max 1h |
| 16 | summary: App Insights availability on ${label:resource_name} |
| 17 | info: Availability test success rate for Application Insights resource ${label:resource_name} \ |
| 18 | in ${label:resource_group} (${label:region}) |
| 19 | to: sysadmin |
| 20 | |
| 21 | template: am_appinsights_availability_duration |
| 22 | on: azure_monitor.application_insights.availability_duration |
| 23 | class: Latency |
| 24 | type: Other |
| 25 | component: Application Insights |
| 26 | lookup: average -5m unaligned of average |
| 27 | units: milliseconds |
| 28 | every: 1m |
| 29 | warn: $this > (($status >= $WARNING) ? (3000) : (5000)) |
| 30 | crit: $this > (($status == $CRITICAL) ? (5000) : (10000)) |
| 31 | delay: down 5m multiplier 1.5 max 1h |
| 32 | summary: App Insights availability test duration on ${label:resource_name} |
| 33 | info: Average availability test duration for Application Insights resource ${label:resource_name} \ |
| 34 | in ${label:resource_group} (${label:region}) |
| 35 | to: sysadmin |
| 36 | |
| 37 | # ── Server Requests ────────────────────────────────────────────────────────── |
| 38 | |
| 39 | # Helper: total request rate over 5 minutes (used for minimum-data guard) |
| 40 | template: am_appinsights_request_rate |
| 41 | on: azure_monitor.application_insights.server_requests |
| 42 | class: Workload |
| 43 | type: Other |
| 44 | component: Application Insights |
| 45 | lookup: average -5m unaligned of total |
| 46 | units: requests/s |
| 47 | every: 1m |
| 48 | summary: App Insights request rate on ${label:resource_name} |
| 49 | info: Average server request rate for Application Insights resource ${label:resource_name} \ |
| 50 | in ${label:resource_group} (${label:region}) |
| 51 | to: silent |
| 52 | |
| 53 | template: am_appinsights_failed_requests |
| 54 | on: azure_monitor.application_insights.server_requests |
| 55 | class: Errors |
| 56 | type: Other |
| 57 | component: Application Insights |
| 58 | lookup: average -5m unaligned percentage of failed |
| 59 | units: % |
| 60 | every: 1m |
| 61 | warn: ($am_appinsights_request_rate > 0.5) ? ($this > (($status >= $WARNING) ? (3) : (5))) : (0) |
| 62 | crit: ($am_appinsights_request_rate > 0.5) ? ($this > (($status == $CRITICAL) ? (10) : (15))) : (0) |
| 63 | delay: down 5m multiplier 1.5 max 1h |
| 64 | summary: App Insights failed requests on ${label:resource_name} |
| 65 | info: Percentage of failed server requests for Application Insights resource ${label:resource_name} \ |
| 66 | in ${label:resource_group} (${label:region}) |
| 67 | to: sysadmin |
| 68 | |
| 69 | template: am_appinsights_response_time |
| 70 | on: azure_monitor.application_insights.server_response_time |
| 71 | class: Latency |
| 72 | type: Other |
| 73 | component: Application Insights |
| 74 | lookup: average -5m unaligned of average |
| 75 | units: milliseconds |
| 76 | every: 1m |
| 77 | warn: $this > (($status >= $WARNING) ? (3000) : (5000)) |
| 78 | crit: $this > (($status == $CRITICAL) ? (5000) : (10000)) |
| 79 | delay: down 5m multiplier 1.5 max 1h |
| 80 | summary: App Insights server response time on ${label:resource_name} |
| 81 | info: Average server response time for Application Insights resource ${label:resource_name} \ |
| 82 | in ${label:resource_group} (${label:region}) |
| 83 | to: sysadmin |
| 84 | |
| 85 | # ── Dependencies ───────────────────────────────────────────────────────────── |
| 86 | |
| 87 | # Helper: total dependency call rate over 5 minutes |
| 88 | template: am_appinsights_dependency_rate |
| 89 | on: azure_monitor.application_insights.dependency_calls |
| 90 | class: Workload |
| 91 | type: Other |
| 92 | component: Application Insights |
| 93 | lookup: average -5m unaligned of total |
| 94 | units: calls/s |
| 95 | every: 1m |
| 96 | summary: App Insights dependency call rate on ${label:resource_name} |
| 97 | info: Average dependency call rate for Application Insights resource ${label:resource_name} \ |
| 98 | in ${label:resource_group} (${label:region}) |
| 99 | to: silent |
| 100 | |
| 101 | template: am_appinsights_failed_dependencies |
| 102 | on: azure_monitor.application_insights.dependency_calls |
| 103 | class: Errors |
| 104 | type: Other |
| 105 | component: Application Insights |
| 106 | lookup: average -5m unaligned percentage of failed |
| 107 | units: % |
| 108 | every: 1m |
| 109 | warn: ($am_appinsights_dependency_rate > 0.5) ? ($this > (($status >= $WARNING) ? (5) : (10))) : (0) |
| 110 | crit: ($am_appinsights_dependency_rate > 0.5) ? ($this > (($status == $CRITICAL) ? (15) : (25))) : (0) |
| 111 | delay: down 5m multiplier 1.5 max 1h |
| 112 | summary: App Insights failed dependencies on ${label:resource_name} |
| 113 | info: Percentage of failed dependency calls for Application Insights resource ${label:resource_name} \ |
| 114 | in ${label:resource_group} (${label:region}) |
| 115 | to: sysadmin |
| 116 | |
| 117 | template: am_appinsights_dependency_duration |
| 118 | on: azure_monitor.application_insights.dependency_duration |
| 119 | class: Latency |
| 120 | type: Other |
| 121 | component: Application Insights |
| 122 | lookup: average -5m unaligned of average |
| 123 | units: milliseconds |
| 124 | every: 1m |
| 125 | warn: $this > (($status >= $WARNING) ? (3000) : (5000)) |
| 126 | crit: $this > (($status == $CRITICAL) ? (5000) : (10000)) |
| 127 | delay: down 5m multiplier 1.5 max 1h |
| 128 | summary: App Insights dependency duration on ${label:resource_name} |
| 129 | info: Average dependency call duration for Application Insights resource ${label:resource_name} \ |
| 130 | in ${label:resource_group} (${label:region}) |
| 131 | to: sysadmin |
| 132 | |
| 133 | # ── Exceptions ─────────────────────────────────────────────────────────────── |
| 134 | |
| 135 | template: am_appinsights_exception_rate |
| 136 | on: azure_monitor.application_insights.exception_rate |
| 137 | class: Errors |
| 138 | type: Other |
| 139 | component: Application Insights |
| 140 | lookup: average -5m unaligned of average |
| 141 | units: exceptions/s |
| 142 | every: 1m |
| 143 | warn: $this != nan AND $this > (($status >= $WARNING) ? (5) : (10)) |
| 144 | crit: $this != nan AND $this > (($status == $CRITICAL) ? (25) : (50)) |
| 145 | delay: down 5m multiplier 1.5 max 1h |
| 146 | summary: App Insights exception rate on ${label:resource_name} |
| 147 | info: Server exception rate for Application Insights resource ${label:resource_name} \ |
| 148 | in ${label:resource_group} (${label:region}) |
| 149 | to: sysadmin |
| 150 | |
| 151 | template: am_appinsights_server_exceptions |
| 152 | on: azure_monitor.application_insights.exceptions |
| 153 | class: Errors |
| 154 | type: Other |
| 155 | component: Application Insights |
| 156 | lookup: average -5m unaligned of server |
| 157 | units: exceptions/s |
| 158 | every: 1m |
| 159 | warn: $this != nan AND $this > (($status >= $WARNING) ? (5) : (10)) |
| 160 | crit: $this != nan AND $this > (($status == $CRITICAL) ? (25) : (50)) |
| 161 | delay: down 5m multiplier 1.5 max 1h |
| 162 | summary: App Insights server exceptions on ${label:resource_name} |
| 163 | info: Server-side exception rate for Application Insights resource ${label:resource_name} \ |
| 164 | in ${label:resource_group} (${label:region}) |
| 165 | to: sysadmin |
| 166 | |
| 167 | # ── Browser Performance ────────────────────────────────────────────────────── |
| 168 | |
| 169 | template: am_appinsights_browser_page_load_time |
| 170 | on: azure_monitor.application_insights.browser_page_load_time |
| 171 | class: Latency |
| 172 | type: Other |
| 173 | component: Application Insights |
| 174 | lookup: average -5m unaligned of total |
| 175 | units: milliseconds |
| 176 | every: 1m |
| 177 | warn: $this != nan AND $this > (($status >= $WARNING) ? (5000) : (10000)) |
| 178 | crit: $this != nan AND $this > (($status == $CRITICAL) ? (10000) : (20000)) |
| 179 | delay: down 5m multiplier 1.5 max 1h |
| 180 | summary: App Insights browser page load time on ${label:resource_name} |
| 181 | info: Average browser page load time for Application Insights resource ${label:resource_name} \ |
| 182 | in ${label:resource_group} (${label:region}) |
| 183 | to: sysadmin |
| 184 | |
| 185 | # ── Performance - CPU ──────────────────────────────────────────────────────── |
| 186 | |
| 187 | template: am_appinsights_process_cpu |
| 188 | on: azure_monitor.application_insights.cpu_utilization |
| 189 | class: Utilization |
| 190 | type: Other |
| 191 | component: Application Insights |
| 192 | lookup: average -5m unaligned of process |
| 193 | units: percentage |
| 194 | every: 1m |
| 195 | warn: $this != nan AND $this > (($status >= $WARNING) ? (75) : (85)) |
| 196 | crit: $this != nan AND $this > (($status == $CRITICAL) ? (85) : (95)) |
| 197 | delay: down 5m multiplier 1.5 max 1h |
| 198 | summary: App Insights process CPU on ${label:resource_name} |
| 199 | info: Application process CPU utilization for Application Insights resource ${label:resource_name} \ |
| 200 | in ${label:resource_group} (${label:region}) |
| 201 | to: sysadmin |
| 202 | |
| 203 | template: am_appinsights_processor_cpu |
| 204 | on: azure_monitor.application_insights.cpu_utilization |
| 205 | class: Utilization |
| 206 | type: Other |
| 207 | component: Application Insights |
| 208 | lookup: average -5m unaligned of processor |
| 209 | units: percentage |
| 210 | every: 1m |
| 211 | warn: $this != nan AND $this > (($status >= $WARNING) ? (80) : (90)) |
| 212 | crit: $this != nan AND $this > (($status == $CRITICAL) ? (90) : (95)) |
| 213 | delay: down 5m multiplier 1.5 max 1h |
| 214 | summary: App Insights processor CPU on ${label:resource_name} |
| 215 | info: Host processor CPU utilization for Application Insights resource ${label:resource_name} \ |
| 216 | in ${label:resource_group} (${label:region}) |
| 217 | to: sysadmin |
| 218 | |
| 219 | # ── Performance - HTTP Pipeline ────────────────────────────────────────────── |
| 220 | |
| 221 | template: am_appinsights_http_execution_time |
| 222 | on: azure_monitor.application_insights.http_request_execution_time |
| 223 | class: Latency |
| 224 | type: Other |
| 225 | component: Application Insights |
| 226 | lookup: average -5m unaligned of average |
| 227 | units: milliseconds |
| 228 | every: 1m |
| 229 | warn: $this != nan AND $this > (($status >= $WARNING) ? (3000) : (5000)) |
| 230 | crit: $this != nan AND $this > (($status == $CRITICAL) ? (5000) : (10000)) |
| 231 | delay: down 5m multiplier 1.5 max 1h |
| 232 | summary: App Insights HTTP execution time on ${label:resource_name} |
| 233 | info: Average HTTP request execution time for Application Insights resource ${label:resource_name} \ |
| 234 | in ${label:resource_group} (${label:region}) |
| 235 | to: sysadmin |
| 236 | |
| 237 | template: am_appinsights_http_queue_length |
| 238 | on: azure_monitor.application_insights.http_request_queue |
| 239 | class: Utilization |
| 240 | type: Other |
| 241 | component: Application Insights |
| 242 | lookup: average -5m unaligned of queued |
| 243 | units: requests |
| 244 | every: 1m |
| 245 | warn: $this != nan AND $this > (($status >= $WARNING) ? (50) : (100)) |
| 246 | crit: $this != nan AND $this > (($status == $CRITICAL) ? (100) : (250)) |
| 247 | delay: down 5m multiplier 1.5 max 1h |
| 248 | summary: App Insights HTTP request queue on ${label:resource_name} |
| 249 | info: Number of HTTP requests waiting in the application queue for Application Insights resource \ |
| 250 | ${label:resource_name} in ${label:resource_group} (${label:region}) |
| 251 | to: sysadmin |
| 252 | |
| 253 | # ── Usage - Page Views ─────────────────────────────────────────────────────── |
| 254 | |
| 255 | template: am_appinsights_page_view_load_time |
| 256 | on: azure_monitor.application_insights.page_view_load_time |
| 257 | class: Latency |
| 258 | type: Other |
| 259 | component: Application Insights |
| 260 | lookup: average -5m unaligned of average |
| 261 | units: milliseconds |
| 262 | every: 1m |
| 263 | warn: $this != nan AND $this > (($status >= $WARNING) ? (5000) : (10000)) |
| 264 | crit: $this != nan AND $this > (($status == $CRITICAL) ? (10000) : (20000)) |
| 265 | delay: down 5m multiplier 1.5 max 1h |
| 266 | summary: App Insights page view load time on ${label:resource_name} |
| 267 | info: Average page view load time for Application Insights resource ${label:resource_name} \ |
| 268 | in ${label:resource_group} (${label:region}) |
| 269 | to: sysadmin |