guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: cdn: Update billing alarms.


From: Chris Marusich
Subject: 01/01: cdn: Update billing alarms.
Date: Sun, 21 Apr 2019 20:49:35 -0400 (EDT)

marusich pushed a commit to branch master
in repository maintenance.

commit ae12095163bdd30a7bf00545f6474765ba684b85
Author: Chris Marusich <address@hidden>
Date:   Sun Apr 21 17:40:46 2019 -0700

    cdn: Update billing alarms.
    
    * cdn/terraform/cloudwatch.tf (alarm-estimated-charges-150-usd)
    (alarm-estimated-charges-140-usd, alarm-estimated-charges-100-usd)
    (alarm-free-tier-exceeded): Remove these alarms...
    (alarm-estimated-charges-300-usd, alarm-estimated-charges-285-usd)
    (alarm-estimated-charges-200-usd, alarm-estimated-charges-185-usd):
    ...and add these.
---
 cdn/terraform/cloudwatch.tf | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/cdn/terraform/cloudwatch.tf b/cdn/terraform/cloudwatch.tf
index 5f790d1..4b293ac 100644
--- a/cdn/terraform/cloudwatch.tf
+++ b/cdn/terraform/cloudwatch.tf
@@ -1,15 +1,15 @@
 # CloudWatch
 
-resource "aws_cloudwatch_metric_alarm" "alarm-estimated-charges-150-usd" {
-  alarm_name = "alarm-estimated-charges-150-usd"
-  alarm_description = "Estimated charges have exceeded 150 USD"
+resource "aws_cloudwatch_metric_alarm" "alarm-estimated-charges-300-usd" {
+  alarm_name = "alarm-estimated-charges-300-usd"
+  alarm_description = "Estimated charges have exceeded 300 USD"
   namespace = "AWS/Billing"
   metric_name = "EstimatedCharges"
   statistic = "Maximum"
   period = "21600" # 6 hours
   evaluation_periods = "1"
   comparison_operator = "GreaterThanThreshold"
-  threshold = "150"
+  threshold = "300"
   actions_enabled = true
   alarm_actions = ["${aws_sns_topic.guix-billing-alarms.arn}"]
   dimensions {
@@ -17,16 +17,16 @@ resource "aws_cloudwatch_metric_alarm" 
"alarm-estimated-charges-150-usd" {
   }
 }
 
-resource "aws_cloudwatch_metric_alarm" "alarm-estimated-charges-140-usd" {
-  alarm_name = "alarm-estimated-charges-140-usd"
-  alarm_description = "Estimated charges have exceeded 140 USD"
+resource "aws_cloudwatch_metric_alarm" "alarm-estimated-charges-285-usd" {
+  alarm_name = "alarm-estimated-charges-285-usd"
+  alarm_description = "Estimated charges have exceeded 285 USD"
   namespace = "AWS/Billing"
   metric_name = "EstimatedCharges"
   statistic = "Maximum"
   period = "21600" # 6 hours
   evaluation_periods = "1"
   comparison_operator = "GreaterThanThreshold"
-  threshold = "140"
+  threshold = "285"
   actions_enabled = true
   alarm_actions = ["${aws_sns_topic.guix-billing-alarms.arn}"]
   dimensions {
@@ -34,16 +34,16 @@ resource "aws_cloudwatch_metric_alarm" 
"alarm-estimated-charges-140-usd" {
   }
 }
 
-resource "aws_cloudwatch_metric_alarm" "alarm-estimated-charges-100-usd" {
-  alarm_name = "alarm-estimated-charges-100-usd"
-  alarm_description = "Estimated charges have exceeded 100 USD"
+resource "aws_cloudwatch_metric_alarm" "alarm-estimated-charges-200-usd" {
+  alarm_name = "alarm-estimated-charges-200-usd"
+  alarm_description = "Estimated charges have exceeded 200 USD"
   namespace = "AWS/Billing"
   metric_name = "EstimatedCharges"
   statistic = "Maximum"
   period = "21600" # 6 hours
   evaluation_periods = "1"
   comparison_operator = "GreaterThanThreshold"
-  threshold = "100"
+  threshold = "200"
   actions_enabled = true
   alarm_actions = ["${aws_sns_topic.guix-billing-alarms.arn}"]
   dimensions {
@@ -51,16 +51,16 @@ resource "aws_cloudwatch_metric_alarm" 
"alarm-estimated-charges-100-usd" {
   }
 }
 
-resource "aws_cloudwatch_metric_alarm" "alarm-free-tier-exceeded" {
-  alarm_name = "alarm-free-tier-exceeded"
-  alarm_description = "Free tier exceeded - further usage will cost money"
+resource "aws_cloudwatch_metric_alarm" "alarm-estimated-charges-185-usd" {
+  alarm_name = "alarm-estimated-charges-185-usd"
+  alarm_description = "Estimated charges have exceeded 185 USD"
   namespace = "AWS/Billing"
   metric_name = "EstimatedCharges"
   statistic = "Maximum"
   period = "21600" # 6 hours
   evaluation_periods = "1"
   comparison_operator = "GreaterThanThreshold"
-  threshold = "0"
+  threshold = "185"
   actions_enabled = true
   alarm_actions = ["${aws_sns_topic.guix-billing-alarms.arn}"]
   dimensions {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]