Skip to content

Commit

Permalink
refactoring alerts and dashboard code (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
MOHAMMED-ho authored Nov 27, 2024
1 parent 1001a58 commit b124c87
Show file tree
Hide file tree
Showing 19 changed files with 893 additions and 226 deletions.
8 changes: 8 additions & 0 deletions alerts/rds_alerts/providers.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
terraform {
required_providers {
dynatrace = {
version = "~> 1.0"
source = "dynatrace-oss/dynatrace"
}
}
}
35 changes: 35 additions & 0 deletions alerts/rds_alerts/rds_alerts.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
resource "dynatrace_alerting" "cosmos-rds-alerting-profile" {
name = var.rds_alerting_profile_name
rules {
rule {
include_mode = var.rds_include_mode
delay_in_minutes = var.rds_delay_in_minutes
severity_level = "AVAILABILITY"
}
rule {
include_mode = var.rds_include_mode
delay_in_minutes = var.rds_delay_in_minutes
severity_level = "CUSTOM_ALERT"
}
rule {
include_mode = var.rds_include_mode
delay_in_minutes = var.rds_delay_in_minutes
severity_level = "ERRORS"
}
rule {
include_mode = var.rds_include_mode
delay_in_minutes = var.rds_delay_in_minutes
severity_level = "MONITORING_UNAVAILABLE"
}
rule {
include_mode = var.rds_include_mode
delay_in_minutes = var.rds_delay_in_minutes
severity_level = "PERFORMANCE"
}
rule {
include_mode = var.rds_include_mode
delay_in_minutes = var.rds_delay_in_minutes
severity_level = "RESOURCE_CONTENTION"
}
}
}
Loading

0 comments on commit b124c87

Please sign in to comment.