From 5076e942c41d41817bb235286b03fa3f1a89b0c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Respaut?= Date: Fri, 19 Jul 2019 11:49:01 +0200 Subject: [PATCH] AZ-97: Rebase with silenced new way --- cloud/azure/storage/README.md | 38 +- cloud/azure/storage/monitors-azure-storage.tf | 452 +++++++++--------- 2 files changed, 254 insertions(+), 236 deletions(-) diff --git a/cloud/azure/storage/README.md b/cloud/azure/storage/README.md index ae40173..68bae3c 100644 --- a/cloud/azure/storage/README.md +++ b/cloud/azure/storage/README.md @@ -16,25 +16,43 @@ module "datadog-monitors-cloud-azure-storage" { Creates DataDog monitors with the following checks: -- Azure Storage is down -- Azure Storage Table service is down -- Azure Storage Table service too few successful requests -- Azure Storage Table service too high end to end latency -- Azure Storage too many throttling errors -- Azure Table Storage too many authorization errors -- Azure Table Storage too many client_other errors -- Azure Table Storage too many network errors -- Azure Table Storage too many server_other errors -- Azure Table Storage too many timeout errors - Azure Blob Storage too many authorization errors - Azure Blob Storage too many client_other errors - Azure Blob Storage too many network errors - Azure Blob Storage too many server_other errors - Azure Blob Storage too many throttling errors - Azure Blob Storage too many timeout errors +- Azure File Storage too many authorization errors +- Azure File Storage too many client_other errors +- Azure File Storage too many network errors +- Azure File Storage too many server_other errors +- Azure File Storage too many timeout errors +- Azure Queue Storage too many authorization errors +- Azure Queue Storage too many client_other errors +- Azure Queue Storage too many network errors +- Azure Queue Storage too many server_other errors +- Azure Queue Storage too many timeout errors - Azure Storage Blob service too few successful requests - Azure Storage Blob service too high end to end latency - Azure Storage Blob services is down +- Azure Storage File service too few successful requests +- Azure Storage File service too high end to end latency +- Azure Storage File services is down +- Azure Storage is down +- Azure Storage Queue service is down +- Azure Storage Queue service too few successful requests +- Azure Storage Queue service too high end to end latency +- Azure Storage Table service is down +- Azure Storage Table service too few successful requests +- Azure Storage Table service too high end to end latency +- Azure Storage too many throttling errors +- Azure Storage too many throttling errors +- Azure Storage too many throttling errors +- Azure Table Storage too many authorization errors +- Azure Table Storage too many client_other errors +- Azure Table Storage too many network errors +- Azure Table Storage too many server_other errors +- Azure Table Storage too many timeout errors ## Inputs diff --git a/cloud/azure/storage/monitors-azure-storage.tf b/cloud/azure/storage/monitors-azure-storage.tf index 90c6457..0a19b03 100644 --- a/cloud/azure/storage/monitors-azure-storage.tf +++ b/cloud/azure/storage/monitors-azure-storage.tf @@ -12,24 +12,24 @@ EOQ critical = 1 } - silenced = var.status_silenced - type = "metric alert" - notify_no_data = true - notify_audit = false - timeout_h = 0 - include_tags = true - locked = false + silenced = var.status_silenced + type = "metric alert" + notify_no_data = true + notify_audit = false + timeout_h = 0 + include_tags = true + locked = false require_full_window = false - new_host_delay = var.new_host_delay - evaluation_delay = var.evaluation_delay - renotify_interval = 0 + new_host_delay = var.new_host_delay + evaluation_delay = var.evaluation_delay + renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.status_extra_tags) } resource "datadog_monitor" "blobservices_availability" { - count = var.availability_enabled == "true" ? 1 : 0 - name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Azure Storage Blob services is down" + count = var.availability_enabled == "true" ? 1 : 0 + name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Azure Storage Blob services is down" message = coalesce(var.availability_message, var.message) query = <