From aa16d78d8d9e3991bb9fe592d6a1503b3da965d2 Mon Sep 17 00:00:00 2001 From: "gauthier.ampe@fr.clara.net" Date: Tue, 30 Jul 2019 09:23:09 +0200 Subject: [PATCH] AZ-97 improve tableservice monitor (test) --- cloud/azure/storage/monitors-azure-storage.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud/azure/storage/monitors-azure-storage.tf b/cloud/azure/storage/monitors-azure-storage.tf index 4fa71cc..9579999 100644 --- a/cloud/azure/storage/monitors-azure-storage.tf +++ b/cloud/azure/storage/monitors-azure-storage.tf @@ -153,9 +153,9 @@ resource "datadog_monitor" "tableservices_requests_error" { query = < ${var.successful_storage_requests_threshold_critical} + default(100-(default(sum:azure.storage_storageaccounts_tableservices.transactions${module.filter-tags-success.query_alert} by {name}.as_rate(),0) / + default(sum:azure.storage_storageaccounts_tableservices.transactions${module.filter-tags.query_alert} by {name}.as_rate(),0) + * 100),0) > ${var.successful_storage_requests_threshold_critical} EOQ