Skip to content

Commit 9a0522f

Browse files
[PRM-134-v2] add namespace to metice alarms
1 parent a89e7a2 commit 9a0522f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

infrastructure/lambda-search-patient.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,19 @@ resource "aws_cloudwatch_metric_alarm" "error_alarm_count_medium" {
4545
label = "error count for search patient, high if about 4, low if between 1 and 3"
4646
return_data = true
4747
expression = "IF(m1 >= 1 AND m1 <= 3, 1, 0)"
48+
namespace = "AWS/Lambda"
49+
4850
}
4951

5052
metric_query {
5153
id = "m1"
5254

5355
metric {
5456
metric_name = "Errors"
55-
period = 120
56-
stat = "Sum"
57+
namespace = "AWS/Lambda"
58+
59+
period = 120
60+
stat = "Sum"
5761
dimensions = {
5862
FunctionName = module.search-patient-details-lambda.function_name
5963
}
@@ -74,6 +78,7 @@ resource "aws_cloudwatch_metric_alarm" "error_alarm_count_high" {
7478
}
7579
metric_name = "Errors"
7680
statistic = "Sum"
81+
namespace = "AWS/Lambda"
7782
}
7883

7984

0 commit comments

Comments
 (0)