From 9fccecd6b2624b21f2b347d31404e34b46516688 Mon Sep 17 00:00:00 2001 From: Alexandre Gaillet Date: Fri, 2 Mar 2018 15:00:27 +0100 Subject: [PATCH] MON-48 - Use ms instead of percent for latency --- cloud/aws/apigateway/monitors-api.tf | 2 +- cloud/aws/elb/monitors-elb.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/aws/apigateway/monitors-api.tf b/cloud/aws/apigateway/monitors-api.tf index 85fcef1..2ed22ad 100644 --- a/cloud/aws/apigateway/monitors-api.tf +++ b/cloud/aws/apigateway/monitors-api.tf @@ -1,6 +1,6 @@ # Monitoring Api Gateway latency resource "datadog_monitor" "API_Gateway_latency" { - name = "[${var.environment}] API Gateway latency {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)" + name = "[${var.environment}] API Gateway latency {{comparator}} {{#is_alert}}{{threshold}}ms{{/is_alert}}{{#is_warning}}{{warn_threshold}}ms{{/is_warning}} ({{value}}ms)" type = "metric alert" message = "${var.message}" diff --git a/cloud/aws/elb/monitors-elb.tf b/cloud/aws/elb/monitors-elb.tf index 29c7736..3d412ad 100644 --- a/cloud/aws/elb/monitors-elb.tf +++ b/cloud/aws/elb/monitors-elb.tf @@ -161,7 +161,7 @@ resource "datadog_monitor" "ELB_too_much_5xx_backend" { } resource "datadog_monitor" "ELB_backend_latency" { - name = "[${var.environment}] ELB latency too high {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)" + name = "[${var.environment}] ELB latency too high {{comparator}} {{#is_alert}}{{threshold}}s{{/is_alert}}{{#is_warning}}{{warn_threshold}}s{{/is_warning}} ({{value}}s)" message = "${var.message}" query = <