Skip to content

Commit

Permalink
fix #514 - wrong namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-dsk-claranet committed Nov 13, 2023
1 parent ca7cc16 commit 2ec8b60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/integration_aws-elb/conf/01-latency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: backend latency

transformation: true
aggregation: true
filtering: "filter('namespace', 'AWS/ApplicationELB')"
filtering: "filter('namespace', 'AWS/ELB')"
value_unit: "Second"

signals:
Expand Down
2 changes: 1 addition & 1 deletion modules/integration_aws-elb/detectors-gen.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "signalfx_detector" "backend_latency" {
}

program_text = <<-EOF
base_filtering = filter('namespace', 'AWS/ApplicationELB')
base_filtering = filter('namespace', 'AWS/ELB')
signal = data('Latency', filter=base_filtering and filter('stat', 'mean') and (not filter('AvailabilityZone', '*')) and filter('LoadBalancerName', '*') and ${module.filtering.signalflow}, rollup='average', extrapolation='zero')${var.backend_latency_aggregation_function}${var.backend_latency_transformation_function}.publish('signal')
detect(when(signal > ${var.backend_latency_threshold_critical}, lasting=%{if var.backend_latency_lasting_duration_critical == null}None%{else}'${var.backend_latency_lasting_duration_critical}'%{endif}, at_least=${var.backend_latency_at_least_percentage_critical})).publish('CRIT')
detect(when(signal > ${var.backend_latency_threshold_major}, lasting=%{if var.backend_latency_lasting_duration_major == null}None%{else}'${var.backend_latency_lasting_duration_major}'%{endif}, at_least=${var.backend_latency_at_least_percentage_major}) and (not when(signal > ${var.backend_latency_threshold_critical}, lasting=%{if var.backend_latency_lasting_duration_critical == null}None%{else}'${var.backend_latency_lasting_duration_critical}'%{endif}, at_least=${var.backend_latency_at_least_percentage_critical}))).publish('MAJOR')
Expand Down

0 comments on commit 2ec8b60

Please sign in to comment.