Skip to content

Commit

Permalink
Add statistic field to alarms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Grayson committed Oct 19, 2023
1 parent f9f968f commit 4d67c64
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions infrastructure/log_alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch1" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -19,6 +20,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch2" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -33,6 +35,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch3" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -47,6 +50,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch4" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -61,6 +65,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch5" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -75,6 +80,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch6" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -89,6 +95,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch7" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -103,6 +110,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch8" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -117,6 +125,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch9" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -131,6 +140,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch10" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -145,6 +155,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch11" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -159,6 +170,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch12" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -173,6 +185,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch13" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand All @@ -187,6 +200,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudwatch14" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = 1
threshold = 1
statistic = "SampleCount"

tags = {
project = var.project
Expand Down

0 comments on commit 4d67c64

Please sign in to comment.