-
-
Save maartenvanderhoef/83047f578486dce8f5995d3c728b99d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locals{ | |
working_graph = { | |
title = "working" | |
viz = "timeseries" | |
request = [ | |
{ | |
q= "${format("avg:aws.applicationelb.target_response_time.p95{targetgroup:%s}","targetgroup/qa-web-backend-web/abcdefghij")}" | |
aggregator = "avg" | |
type = "line" | |
style { | |
palette = "dog_classic" | |
type = "solid" | |
width = "normal" | |
} | |
}] | |
} | |
not_working_graph = { | |
title = "not_working" | |
viz = "timeseries" | |
request = [ | |
{ | |
q= "${format("avg:aws.applicationelb.target_response_time.p95{targetgroup:%s}",local.backend_web_tg)}" | |
aggregator = "avg" | |
type = "line" | |
style { | |
palette = "dog_classic" | |
type = "solid" | |
width = "normal" | |
} | |
}] | |
} | |
} | |
resource "datadog_timeboard" "working" { | |
title = "ECS Cluster graphs for ${terraform.workspace}" | |
description = "ECS Cluster graphs for ${terraform.workspace}" | |
read_only = true | |
graph = ["${local.working_graph}"] | |
} | |
resource "datadog_timeboard" "not_working" { | |
title = "ECS Cluster graphs for ${terraform.workspace}" | |
description = "ECS Cluster graphs for ${terraform.workspace}" | |
read_only = true | |
graph = ["${local.not_working_graph}"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment