Skip to content

Instantly share code, notes, and snippets.

@mumoshu
Created June 16, 2020 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mumoshu/e42e8a319aab6885916270cd3c4d0c35 to your computer and use it in GitHub Desktop.
Save mumoshu/e42e8a319aab6885916270cd3c4d0c35 to your computer and use it in GitHub Desktop.
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