Skip to content

Commit

Permalink
Merge pull request #154 from claranet/improve_azure_detectors
Browse files Browse the repository at this point in the history
#115 Cleanup Azure PostgreSQL detector
  • Loading branch information
xp-1000 authored Oct 21, 2020
2 parents 28ef9c8 + aa2c69d commit 1212139
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cloud/azure/postgresql/detectors-postgresql.tf
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ resource "signalfx_detector" "serverlog_storage_usage" {
detect_label = "CRIT"
disabled = coalesce(var.serverlog_storage_usage_disabled_critical, var.serverlog_storage_usage_disabled, var.detectors_disabled)
notifications = coalescelist(lookup(var.serverlog_storage_usage_notifications, "critical", []), var.notifications.critical)
parameterized_subject = "[{{ruleSeverity}}]{{{detectorName}}} {{{readableRule}}} ({{inputs.signal.value}}) on {{{dimensions}}}"
parameterized_subject = local.rule_subject
parameterized_body = local.rule_body
}

rule {
Expand All @@ -187,7 +188,8 @@ resource "signalfx_detector" "serverlog_storage_usage" {
detect_label = "MAJOR"
disabled = coalesce(var.serverlog_storage_usage_disabled_major, var.serverlog_storage_usage_disabled, var.detectors_disabled)
notifications = coalescelist(lookup(var.serverlog_storage_usage_notifications, "major", []), var.notifications.major)
parameterized_subject = "[{{ruleSeverity}}]{{{detectorName}}} {{{readableRule}}} ({{inputs.signal.value}}) on {{{dimensions}}}"
parameterized_subject = local.rule_subject
parameterized_body = local.rule_body
}
}

0 comments on commit 1212139

Please sign in to comment.