| 1 | # you can disable an alarm notification by setting the 'to' line to: silent |
| 2 | |
| 3 | # --- Availability --- |
| 4 | |
| 5 | template: am_key_vault_availability |
| 6 | on: azure_monitor.key_vault.availability |
| 7 | class: Availability |
| 8 | type: Certificates |
| 9 | component: Azure Key Vault |
| 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: Key Vault availability on ${label:resource_name} |
| 17 | info: Overall vault availability of Azure Key Vault ${label:resource_name} \ |
| 18 | in ${label:resource_group} (${label:region}). \ |
| 19 | Azure SLA guarantees 99.99% availability |
| 20 | to: sysadmin |
| 21 | |
| 22 | # --- Latency --- |
| 23 | |
| 24 | template: am_key_vault_api_latency |
| 25 | on: azure_monitor.key_vault.api_latency |
| 26 | class: Latency |
| 27 | type: Certificates |
| 28 | component: Azure Key Vault |
| 29 | lookup: average -5m unaligned of average |
| 30 | units: milliseconds |
| 31 | every: 1m |
| 32 | warn: $this > (($status >= $WARNING) ? (500) : (1000)) |
| 33 | crit: $this > (($status == $CRITICAL) ? (1000) : (2000)) |
| 34 | delay: down 5m multiplier 1.5 max 1h |
| 35 | summary: Key Vault API latency on ${label:resource_name} |
| 36 | info: Average API latency of Azure Key Vault ${label:resource_name} \ |
| 37 | in ${label:resource_group} (${label:region}). \ |
| 38 | High latency may indicate throttling or service degradation |
| 39 | to: sysadmin |
| 40 | |
| 41 | # --- Saturation --- |
| 42 | |
| 43 | template: am_key_vault_saturation |
| 44 | on: azure_monitor.key_vault.saturation |
| 45 | class: Utilization |
| 46 | type: Certificates |
| 47 | component: Azure Key Vault |
| 48 | lookup: average -5m unaligned of average |
| 49 | units: percentage |
| 50 | every: 1m |
| 51 | warn: $this > (($status >= $WARNING) ? (60) : (75)) |
| 52 | crit: $this > (($status == $CRITICAL) ? (75) : (90)) |
| 53 | delay: down 5m multiplier 1.5 max 1h |
| 54 | summary: Key Vault saturation on ${label:resource_name} |
| 55 | info: Vault saturation of Azure Key Vault ${label:resource_name} \ |
| 56 | in ${label:resource_group} (${label:region}). \ |
| 57 | High saturation means the vault is approaching its transaction limits |
| 58 | to: sysadmin |