Skip to content

Commit

Permalink
adds config for elasticsearch alerts (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
beckywhitemartin authored Jan 9, 2025
1 parent 386a70c commit 696f9ef
Show file tree
Hide file tree
Showing 4 changed files with 745 additions and 0 deletions.
35 changes: 35 additions & 0 deletions alerts/elasticsearch_alerts/elasticsearch_alerts.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
resource "dynatrace_alerting" "cosmos-elasticsearch-alerting-profile" {
name = var.elasticsearch_alerting_profile_name
rules {
rule {
include_mode = var.elasticsearch_include_mode
delay_in_minutes = var.elasticsearch_delay_in_minutes
severity_level = "AVAILABILITY"
}
rule {
include_mode = var.elasticsearch_include_mode
delay_in_minutes = var.elasticsearch_delay_in_minutes
severity_level = "CUSTOM_ALERT"
}
rule {
include_mode = var.elasticsearch_include_mode
delay_in_minutes = var.elasticsearch_delay_in_minutes
severity_level = "ERRORS"
}
rule {
include_mode = var.elasticsearch_include_mode
delay_in_minutes = var.elasticsearch_delay_in_minutes
severity_level = "MONITORING_UNAVAILABLE"
}
rule {
include_mode = var.elasticsearch_include_mode
delay_in_minutes = var.elasticsearch_delay_in_minutes
severity_level = "PERFORMANCE"
}
rule {
include_mode = var.elasticsearch_include_mode
delay_in_minutes = var.elasticsearch_delay_in_minutes
severity_level = "RESOURCE_CONTENTION"
}
}
}
Loading

0 comments on commit 696f9ef

Please sign in to comment.