-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboards.tf
57 lines (56 loc) · 2.17 KB
/
dashboards.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
resource "aws_cloudwatch_dashboard" "lambda" {
dashboard_name = "Lambda"
dashboard_body = jsonencode(
{
"widgets": [
{
"height": 9,
"width": 12,
"y": 0,
"x": 0,
"type": "metric",
"properties": {
"metrics": [
[ "AWS/Lambda", "Invocations", "FunctionName", "home_monitoring_auth", "Resource", "home_monitoring_auth" ],
[ "...", "home_monitoring_scraper_flume", ".", "home_monitoring_scraper_flume" ],
[ "...", "home_monitoring_scraper_enphase", ".", "home_monitoring_scraper_enphase" ],
[ "...", "home_monitoring_scraper_yolink", ".", "home_monitoring_scraper_yolink" ],
[ "...", "home_monitoring_scraper_ecowitt", ".", "home_monitoring_scraper_ecowitt" ]
],
"period": 300,
"region": "us-west-2",
"setPeriodToTimeRange": true,
"sparkline": false,
"stacked": true,
"stat": "Average",
"title": "Invocations",
"trend": false,
"view": "timeSeries"
}
},
{
"height": 9,
"width": 11,
"y": 0,
"x": 12,
"type": "metric",
"properties": {
"metrics": [
[ "AWS/Lambda", "Errors", "FunctionName", "home_monitoring_auth", "Resource", "home_monitoring_auth" ],
[ "...", "home_monitoring_scraper_ecowitt", ".", "home_monitoring_scraper_ecowitt" ],
[ "...", "home_monitoring_scraper_yolink", ".", "home_monitoring_scraper_yolink" ],
[ "...", "home_monitoring_scraper_flume", ".", "home_monitoring_scraper_flume" ],
[ "...", "home_monitoring_scraper_enphase", ".", "home_monitoring_scraper_enphase" ]
],
"period": 300,
"region": "us-west-2",
"stacked": true,
"stat": "Average",
"title": "Errors",
"view": "timeSeries"
}
}
]
}
)
}