-
Notifications
You must be signed in to change notification settings - Fork 0
/
elb-application.tf
171 lines (140 loc) · 4.11 KB
/
elb-application.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
resource "datadog_timeboard" "elb_application" {
count = "${var.lb_type == "application" ? 1 : 0}"
title = "${var.product_domain} - ${var.lb_name} - ELB Application"
description = "A generated timeboard for ELB Application"
template_variable {
default = "${var.lb_name}"
name = "lb_name"
prefix = "name"
}
graph {
title = "Client TLS Negotiation Error Count"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.client_tlsnegotiation_error_count{$lb_name} by {name,availability-zone}"
type = "line"
}
}
graph {
title = "HTTP Responses Count"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.httpcode_elb_4xx{$lb_name} by {name,availability-zone}.as_count()"
type = "line"
}
request {
q = "avg:aws.applicationelb.httpcode_elb_5xx{$lb_name} by {name,availability-zone}.as_count()"
type = "line"
}
}
graph {
title = "HTTP Target Responses Count"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.httpcode_target_2xx{$lb_name} by {name,availability-zone}.as_count()"
type = "line"
}
request {
q = "avg:aws.applicationelb.httpcode_target_3xx{$lb_name} by {name,availability-zone}.as_count()"
type = "line"
}
request {
q = "avg:aws.applicationelb.httpcode_target_4xx{$lb_name} by {name,availability-zone}.as_count()"
type = "line"
}
request {
q = "avg:aws.applicationelb.httpcode_target_3xx{$lb_name} by {name,availability-zone}.as_count()"
type = "line"
}
}
graph {
title = "Request Count"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.request_count{$lb_name} by {name,availability-zone}.as_count()"
type = "line"
}
}
graph {
title = "Healthy Host Count"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.healthy_host_count{$lb_name} by {name,availability-zone}"
type = "line"
}
request {
q = "avg:aws.applicationelb.healthy_host_count.maximum{$lb_name} by {name,availability-zone}"
type = "line"
}
request {
q = "avg:aws.applicationelb.healthy_host_count.minimum{$lb_name} by {name,availability-zone}"
type = "line"
}
request {
q = "avg:aws.applicationelb.healthy_host_count_deduped{$lb_name} by {name,availability-zone}"
type = "line"
}
}
graph {
title = "Unhealthy Host Count"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.un_healthy_host_count{$lb_name} by {name,availability-zone}"
type = "line"
}
request {
q = "avg:aws.applicationelb.un_healthy_host_count.maximum{$lb_name} by {name,availability-zone}"
type = "line"
}
request {
q = "avg:aws.applicationelb.un_healthy_host_count.minimum{$lb_name} by {name,availability-zone}"
type = "line"
}
request {
q = "avg:aws.applicationelb.un_healthy_host_count_deduped{$lb_name} by {name,availability-zone}"
type = "line"
}
}
graph {
title = "Active Connection Count"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.active_connection_count{$lb_name} by {name}"
type = "line"
}
}
graph {
title = "New Connection Count"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.new_connection_count{$lb_name} by {name}.as_count()"
type = "line"
}
}
graph {
title = "Processed Bytes"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.processed_bytes{$lb_name} by {name}.as_count()"
type = "line"
}
}
graph {
title = "Consumed Lcus"
viz = "timeseries"
autoscale = true
request {
q = "avg:aws.applicationelb.consumed_lcus{$lb_name} by {name}"
type = "line"
}
}
}