diff --git a/modules/integration_aws-direct-connect/conf/01-connection_state.yaml b/modules/integration_aws-direct-connect/conf/01-connection_state.yaml index e4cb56b3e..49180da4c 100644 --- a/modules/integration_aws-direct-connect/conf/01-connection_state.yaml +++ b/modules/integration_aws-direct-connect/conf/01-connection_state.yaml @@ -10,7 +10,7 @@ value_unit: "state" signals: signal: metric: ConnectionState - filter: "filter('stat', 'maximum')" + filter: "filter('stat', 'sum')" rules: critical: diff --git a/modules/integration_aws-direct-connect/detectors-gen.tf b/modules/integration_aws-direct-connect/detectors-gen.tf index 890790594..3c8c06900 100644 --- a/modules/integration_aws-direct-connect/detectors-gen.tf +++ b/modules/integration_aws-direct-connect/detectors-gen.tf @@ -40,7 +40,7 @@ resource "signalfx_detector" "connection_state" { program_text = <<-EOF base_filtering = filter('namespace', 'AWS/DX') - signal = data('ConnectionState', filter=base_filtering and filter('stat', 'maximum') and ${module.filtering.signalflow})${var.connection_state_aggregation_function}${var.connection_state_transformation_function}.publish('signal') + signal = data('ConnectionState', filter=base_filtering and filter('stat', 'sum') and ${module.filtering.signalflow})${var.connection_state_aggregation_function}${var.connection_state_transformation_function}.publish('signal') detect(when(signal == ${var.connection_state_threshold_critical}%{if var.connection_state_lasting_duration_critical != null}, lasting='${var.connection_state_lasting_duration_critical}', at_least=${var.connection_state_at_least_percentage_critical}%{endif})).publish('CRIT') EOF