-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathliveness-alert.tf
51 lines (44 loc) · 1.97 KB
/
liveness-alert.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module "blob-router-service-liveness-alert" {
source = "[email protected]:hmcts/cnp-module-metric-alert"
location = var.location
app_insights_name = module.application_insights.name
enabled = var.env == "prod"
alert_name = "Blob_Router_Service_liveness"
alert_desc = "Triggers when blob router service looks like being down within a 30 minutes window timeframe."
common_tags = var.common_tags
app_insights_query = <<EOF
requests
| where url endswith "/health/liveness" and success != "True"
| where cloud_RoleName == "Blob Router Service"
EOF
frequency_in_minutes = "15"
time_window_in_minutes = "16"
severity_level = "2"
action_group_name = module.alert-action-group.action_group_name
custom_email_subject = "Blob Router Service liveness"
trigger_threshold_operator = "GreaterThan"
trigger_threshold = "10"
resourcegroup_name = azurerm_resource_group.rg.name
}
module "reform-scan-notification-service-liveness-alert" {
source = "[email protected]:hmcts/cnp-module-metric-alert"
location = var.location
app_insights_name = module.application_insights.name
enabled = var.env == "prod"
alert_name = "Reform_Scan_Notification_Service_liveness"
alert_desc = "Triggers when reform scan notification service looks like being down within a 30 minutes window timeframe."
common_tags = var.common_tags
app_insights_query = <<EOF
requests
| where url endswith "/health/liveness" and success != "True"
| where cloud_RoleName == "Reform Scan Notification Service"
EOF
frequency_in_minutes = "15"
time_window_in_minutes = "16"
severity_level = "2"
action_group_name = module.alert-action-group.action_group_name
custom_email_subject = "Reform Scan Notification Service liveness"
trigger_threshold_operator = "GreaterThan"
trigger_threshold = "10"
resourcegroup_name = azurerm_resource_group.rg.name
}