Skip to content

Commit

Permalink
fix(slack-notifier): exclude health checks from alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Oct 23, 2024
1 parent 6b926f4 commit 42be333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .azure/modules/functionApp/slackNotifier.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var query = '''
| where type != "ZiggyCreatures.Caching.Fusion.SyntheticTimeoutException"),
(traces
| where severityLevel >= 3 or (severityLevel >= 2 and customDimensions.SourceContext startswith "Digdir"))
| where operation_Name !startswith "GET /health/"
| where customDimensions.RequestPath !startswith "/health"
| summarize Count = count()
by
Environment = tostring(customDimensions.AspNetCoreEnvironment),
Expand Down

0 comments on commit 42be333

Please sign in to comment.