Skip to content

Commit

Permalink
Update Azure SQL database heartbeat metric (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
BzSpi authored Oct 12, 2022
1 parent 263ffa0 commit 75900cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "signalfx_detector" "heartbeat" {
program_text = <<-EOF
from signalfx.detectors.not_reporting import not_reporting
base_filter = filter('resource_type', 'Microsoft.Sql/servers/databases') and filter('primary_aggregation_type', 'true')
signal = data('connection_successful', filter=base_filter and ${module.filtering.signalflow})${var.heartbeat_aggregation_function}.publish('signal')
signal = data('sessions_count', filter=base_filter and ${module.filtering.signalflow})${var.heartbeat_aggregation_function}.publish('signal')
not_reporting.detector(stream=signal, resource_identifier=None, duration='${var.heartbeat_timeframe}', auto_resolve_after='${local.heartbeat_auto_resolve_after}').publish('CRIT')
EOF

Expand Down

0 comments on commit 75900cd

Please sign in to comment.