Skip to content

Commit

Permalink
Add basic worker info to dashboard. (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
jareware authored Apr 22, 2020
1 parent 0b82e0f commit d7f3813
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions infra/modules/main/cloudwatch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,35 @@ resource "aws_cloudwatch_dashboard" "overview" {
"title": "Backend API logs matching \"error\"",
"view": "table"
}
},
{
"type": "metric",
"x": 0,
"y": 12,
"width": 6,
"height": 6,
"properties": {
"metrics": [
[ { "expression": "(m1/1000)/60", "label": "Duration (minutes)", "id": "e1" } ],
[ "AWS/Lambda", "Duration", "FunctionName", "${module.backend_worker.function_name}", { "color": "#1f77b4", "id": "m1", "visible": false } ],
[ ".", "Errors", ".", ".", { "yAxis": "right", "color": "#d62728", "id": "m2" } ]
],
"view": "timeSeries",
"stacked": false,
"region": "${data.aws_region.current.name}",
"stat": "Average",
"period": 900,
"title": "Worker",
"yAxis": {
"left": {
"label": "Minutes",
"showUnits": false
},
"right": {
"label": "Errors"
}
}
}
}
]
}
Expand Down

0 comments on commit d7f3813

Please sign in to comment.