Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
metric {
provider = "cloudwatch"
max = 10
query = <<EOS
[
{
"Id": "e1",
"Expression": "m1",
"Label": "ErrorCount"
},
{
"Id": "m1",
"MetricStat": {
"Metric": {
"MetricName": "HTTPCode_Target_5XX_Count",
"Dimensions": [
{
"Name": "TargetGroup",
"Value": "${.TargetGroupARN}"
},
{
"Name": "LoadBalancer",
"Value": "${.LoadBalancerARN}"
}
]
},
"Period": 300,
"Stat": "Sum",
"Unit": "Count"
},
"ReturnData": false
}
]
EOS
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment