MON-571 Apply suggestion to cloud/azure/app-gateway/monitors-app-gateway.tf

This commit is contained in:
Gauthier Ampe 2020-03-24 17:42:12 +01:00 committed by Quentin Manfroi
parent e8025afa09
commit 57e4ba8c02
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ Creates DataDog monitors with the following checks:
- App Gateway backend HTTP 5xx errors rate is too high
- App Gateway backend unhealthy host ratio is too high
- App Gateway failed requests
- App Gateway has no successful requests
- App Gateway has no requests
- App Gateway HTTP 4xx errors rate is too high
- App Gateway HTTP 5xx errors rate is too high
- App Gateway is down

View File

@ -32,7 +32,7 @@ EOQ
# Monitoring App Gateway total_requests
resource "datadog_monitor" "total_requests" {
count = var.total_requests_enabled == "true" ? 1 : 0
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] App Gateway has no successful requests"
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] App Gateway has no requests"
message = coalesce(var.total_requests_message, var.message)
type = "query alert"