You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PPHA-645: create container app health checks (#359)
# What is the change?
This includes infrastructure alarming on the Database and Container
webapp.
Also includes an Application insights web test, this will test the
availability of the container app via hitting the healthcheck endpoint.
Also adds a boolean option to enable alerting or not, but default its
false
Also adds in the number of replicas for the container app.
And adds in the memory used by the container app (default 1).
To test this out:-
- Add the infra secrets to the inf key vault
`kv-lungcs-[environment]-inf`
- Create an monitoring email address which will be used to fire alerts
to.
- Set `monitoring-email-address` to a pre created monitring email
address, if this is not set up then set it to your own email address.
<!-- Describe the intended changes. -->
# Why are we making this change?
<!-- Why is this change required? What problem does it solve? -->
Copy file name to clipboardExpand all lines: infrastructure/modules/container-apps/output.tf
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@ output "internal_url" {
2
2
value=module.webapp.url
3
3
}
4
4
5
-
# Commented out as the front door endpoints is not being used at the moment (awaiting for DNS to be sorted), but this can be re-enabled if front door is added back in.
6
-
# output "external_url" {
7
-
# value = var.features.front_door ? "https://${module.frontdoor_endpoint[0].custom_domains["${var.environment}-domain"].host_name}/" : null
error_message="The alert_window_size must be one of: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H"
175
+
}
176
+
description="The period of time that is used to monitor alert activity e.g. PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H. The interval between checks is adjusted accordingly."
177
+
}
178
+
179
+
variable"container_memory" {
180
+
description="Memory allocated to the webapp container in Gi. CPU is automatically set to half the memory value by the container-app module."
181
+
type=string
182
+
}
183
+
184
+
variable"action_group_id" {
185
+
type=string
186
+
description="ID of the action group to notify."
187
+
}
188
+
189
+
variable"infra_key_vault_name" {
190
+
description="Name of the infra key vault"
191
+
type=string
192
+
}
193
+
194
+
variable"infra_key_vault_rg" {
195
+
description="Name of the infra key vault resource group"
0 commit comments