MON-48 - Use ms instead of percent for latency

This commit is contained in:
Alexandre Gaillet 2018-03-02 15:00:27 +01:00
parent 5797379a1b
commit 9fccecd6b2
2 changed files with 2 additions and 2 deletions

View File

@ -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}"

View File

@ -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 = <<EOF