@@ -8,17 +8,18 @@ locals {
8
8
alarm_description = " ${ aws_opensearch_domain . this . domain_name } has entered redstatus. One or more primary shard and its replicaes are not allocated to a node"
9
9
10
10
comparison_operator = " GreaterThanOrEqualToThreshold"
11
- evaluation_periods = 1
12
- threshold = 1
11
+ evaluation_periods = 5
12
+ threshold = 5
13
13
period = 1 * local.minute
14
14
15
- namespace = " ES/OpenSearchService "
15
+ namespace = " AWS/ES "
16
16
metric_name = " ClusterStatus.red"
17
17
statistic = " Maximum"
18
18
treat_missing_data = " notBreaching"
19
19
20
20
dimensions = {
21
21
DomainName = aws_opensearch_domain.this.domain_name
22
+ ClientId = data.aws_caller_identity.current.account_id
22
23
}
23
24
alarm_actions = var.alarm_actions
24
25
ok_actions = var.ok_actions
@@ -34,7 +35,7 @@ locals {
34
35
threshold = 1
35
36
period = 1 * local.minute
36
37
37
- namespace = " ES/OpenSearchService "
38
+ namespace = " AWS/ES "
38
39
metric_name = " ClusterStatus.yellow"
39
40
statistic = " Maximum"
40
41
treat_missing_data = " notBreaching"
@@ -56,7 +57,7 @@ locals {
56
57
threshold = 1
57
58
period = 1 * local.minute
58
59
59
- namespace = " ES/OpenSearchService "
60
+ namespace = " AWS/ES "
60
61
metric_name = " ClusterIndexWritesBlocked"
61
62
statistic = " Maximum"
62
63
treat_missing_data = " notBreaching"
@@ -78,7 +79,7 @@ locals {
78
79
threshold = 1
79
80
period = 60 * local.minute * 24
80
81
81
- namespace = " ES/OpenSearchService "
82
+ namespace = " AWS/ES "
82
83
metric_name = " Nodes"
83
84
statistic = " Maximum"
84
85
treat_missing_data = " notBreaching"
@@ -103,7 +104,7 @@ locals {
103
104
period = 15 * local.minute
104
105
unit = " Percent"
105
106
106
- namespace = " ES/OpenSearchService "
107
+ namespace = " AWS/ES "
107
108
metric_name = " CPUUtilization"
108
109
statistic = " Maximum"
109
110
treat_missing_data = " notBreaching"
@@ -126,7 +127,7 @@ locals {
126
127
period = 15 * local.minute
127
128
unit = " Percent"
128
129
129
- namespace = " ES/OpenSearchService "
130
+ namespace = " AWS/ES "
130
131
metric_name = " MasterCPUUtilization"
131
132
statistic = " Maximum"
132
133
treat_missing_data = " notBreaching"
@@ -150,7 +151,7 @@ locals {
150
151
period = 15 * local.minute
151
152
unit = " Percent"
152
153
153
- namespace = " ES/OpenSearchService "
154
+ namespace = " AWS/ES "
154
155
metric_name = " WarmCPUUtilization"
155
156
statistic = " Maximum"
156
157
treat_missing_data = " notBreaching"
@@ -175,7 +176,7 @@ locals {
175
176
period = 15 * local.minute
176
177
unit = " Percent"
177
178
178
- namespace = " ES/OpenSearchService "
179
+ namespace = " AWS/ES "
179
180
metric_name = " JVMMemoryPressure"
180
181
statistic = " Maximum"
181
182
treat_missing_data = " notBreaching"
@@ -198,7 +199,7 @@ locals {
198
199
period = 15 * local.minute
199
200
unit = " Percent"
200
201
201
- namespace = " ES/OpenSearchService "
202
+ namespace = " AWS/ES "
202
203
metric_name = " OldGenJVMMemoryPressure"
203
204
statistic = " Maximum"
204
205
treat_missing_data = " notBreaching"
@@ -221,7 +222,7 @@ locals {
221
222
period = 15 * local.minute
222
223
unit = " Percent"
223
224
224
- namespace = " ES/OpenSearchService "
225
+ namespace = " AWS/ES "
225
226
metric_name = " MasterJVMMemoryPressure"
226
227
statistic = " Maximum"
227
228
treat_missing_data = " notBreaching"
@@ -244,7 +245,7 @@ locals {
244
245
period = 60 * local.minute
245
246
unit = " Percent"
246
247
247
- namespace = " ES/OpenSearchService "
248
+ namespace = " AWS/ES "
248
249
metric_name = " MasterOldGenJVMMemoryPressure"
249
250
statistic = " Maximum"
250
251
treat_missing_data = " notBreaching"
@@ -270,7 +271,7 @@ locals {
270
271
period = 1 * local.minute
271
272
unit = " Percent"
272
273
273
- namespace = " ES/OpenSearchService "
274
+ namespace = " AWS/ES "
274
275
metric_name = " KMSKeyError"
275
276
statistic = " Maximum"
276
277
treat_missing_data = " notBreaching"
@@ -294,7 +295,7 @@ locals {
294
295
period = 1 * local.minute
295
296
unit = " Percent"
296
297
297
- namespace = " ES/OpenSearchService "
298
+ namespace = " AWS/ES "
298
299
metric_name = " KMSKeyInaccessible"
299
300
statistic = " Maximum"
300
301
treat_missing_data = " notBreaching"
@@ -317,7 +318,7 @@ locals {
317
318
threshold = 3
318
319
period = 10 * local.minute
319
320
320
- namespace = " ES/OpenSearchService "
321
+ namespace = " AWS/ES "
321
322
metric_name = " 5xx"
322
323
statistic = " Maximum"
323
324
treat_missing_data = " notBreaching"
@@ -340,7 +341,7 @@ locals {
340
341
threshold = 100
341
342
period = 1 * local.minute
342
343
343
- namespace = " ES/OpenSearchService "
344
+ namespace = " AWS/ES "
344
345
metric_name = " ThreadpoolWriteQueue"
345
346
statistic = " Average"
346
347
treat_missing_data = " notBreaching"
@@ -362,7 +363,7 @@ locals {
362
363
threshold = 500
363
364
period = 1 * local.minute
364
365
365
- namespace = " ES/OpenSearchService "
366
+ namespace = " AWS/ES "
366
367
metric_name = " ThreadpoolSearchQueue"
367
368
statistic = " Average"
368
369
treat_missing_data = " notBreaching"
@@ -384,7 +385,7 @@ locals {
384
385
threshold = 5000
385
386
period = 1 * local.minute
386
387
387
- namespace = " ES/OpenSearchService "
388
+ namespace = " AWS/ES "
388
389
metric_name = " ThreadpoolSearchQueue"
389
390
statistic = " Maximum"
390
391
treat_missing_data = " notBreaching"
@@ -408,7 +409,7 @@ locals {
408
409
threshold = 1
409
410
period = 1 * local.minute
410
411
411
- namespace = " ES/OpenSearchService "
412
+ namespace = " AWS/ES "
412
413
metric_name = " HotToWarmMigrationFailureCount"
413
414
statistic = " Maximum"
414
415
treat_missing_data = " notBreaching"
0 commit comments