-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathalb.template.yml
130 lines (129 loc) · 6.04 KB
/
alb.template.yml
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
# Metrics
#
# Cf. http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-cloudwatch-metrics.html
#
# TargetResponseTime: The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received.
# RequestCount: The number of requests received by the load balancer.
# NewConnectionCount: The total number of new TCP connections established from clients to the load balancer and from the load balancer to targets.
# ActiveConnectionCount: The total number of concurrent TCP connections active from clients to the load balancer and from the load balancer to targets.
# ProcessedBytes: The total number of bytes processed by the load balancer.
# TargetConnectionErrorCount: The number of connections that were not successfully established between the load balancer and target.
# RejectedConnectionCount: The number of connections that were rejected because the load balancer had reached its maximum number of connections.
# ClientTLSNegotiationErrorCount: The number of TLS connections initiated by the client that did not establish a session with the load balancer. Possible causes include a mismatch of ciphers or protocols.
# TargetTLSNegotiationErrorCount: The number of TLS connections initiated by the load balancer that did not establish a session with the target. Possible causes include a mismatch of ciphers or protocols.
# HTTPCode_Target_2XX_Count: The number of HTTP response codes generated by the targets. This does not include any response codes generated by the load balancer.
# HTTPCode_Target_3XX_Count: The number of HTTP response codes generated by the targets. This does not include any response codes generated by the load balancer.
# HTTPCode_Target_4XX_Count: The number of HTTP response codes generated by the targets. This does not include any response codes generated by the load balancer.
# HTTPCode_Target_5XX_Count: The number of HTTP response codes generated by the targets. This does not include any response codes generated by the load balancer.
# HTTPCode_ELB_4XX_Count: The number of HTTP 4XX client error codes that originate from the load balancer. Client errors are generated when requests are malformed or incomplete. These requests have not been received by the target. This count does not include any response codes generated by the targets.
# HTTPCode_ELB_5XX_Count: The number of HTTP 5XX server error codes that originate from the load balancer. This count does not include any response codes generated by the targets.
alb:
namespace: AWS/ApplicationELB
prefix: ALB
# only:
# -
# key: LoadBalancerName
# regexp: staging
# -
# key: LoadBalancerName
# regexp: production
# exclude:
# -
# key: LoadBalancerName
# regexp: staging
# -
# key: LoadBalancerName
# regexp: production
sns:
team1: arn:aws:sns:us-east-1:143926955510:pagerduty-team1
team2: arn:aws:sns:us-east-1:143926955510:pagerduty-team2
team3: arn:aws:sns:us-east-1:143926955510:pagerduty-team3
default:
all:
EvaluationPeriods: 3
Period: 60
sns:
AlarmActions:
- team1
OKActions:
- team1
InsufficientActions:
- team1
alarms:
all:
- HightTargetResponseTime:
MetricName: TargetResponseTime
Statistic: Average
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighHTTPCode_ELB_5XX_Count:
MetricName: HTTPCode_ELB_5XX_Count
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
my_load_balancer_name:
- HightRequestCount:
MetricName: RequestCount
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighNewConnectionCount:
MetricName: NewConnectionCount
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighActiveConnectionCount:
MetricName: ActiveConnectionCount
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighProcessedBytes:
MetricName: ProcessedBytes
Statistic: Average
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighTargetConnectionErrorCount:
MetricName: TargetConnectionErrorCount
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighRejectedConnectionCount:
MetricName: RejectedConnectionCount
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighClientTLSNegotiationErrorCount:
MetricName: ClientTLSNegotiationErrorCount
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighTargetTLSNegotiationErrorCount:
MetricName: TargetTLSNegotiationErrorCount
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighHTTPCode_Target_2XX_Count:
MetricName: HTTPCode_Target_2XX_Count
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighHTTPCode_Target_3XX_Count:
MetricName: HTTPCode_Target_3XX_Count
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighHTTPCode_Target_4XX_Count:
MetricName: HTTPCode_Target_4XX_Count
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighHTTPCode_Target_5XX_Count:
MetricName: HTTPCode_Target_5XX_Count
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO
- HighHTTPCode_ELB_4XX_Count:
MetricName: HTTPCode_ELB_4XX_Count
Statistic: Sum
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: TODO