From ff8d6d1038e1c723fbcc1819988b520963a7df21 Mon Sep 17 00:00:00 2001 From: Are Almaas Date: Thu, 10 Oct 2024 16:56:56 +0200 Subject: [PATCH 1/2] chore(slacknotifier): remove health checks from slack alerts --- .azure/modules/functionApp/slackNotifier.bicep | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.azure/modules/functionApp/slackNotifier.bicep b/.azure/modules/functionApp/slackNotifier.bicep index 6791d328b..6a1ec6c03 100644 --- a/.azure/modules/functionApp/slackNotifier.bicep +++ b/.azure/modules/functionApp/slackNotifier.bicep @@ -155,12 +155,14 @@ resource notifyDevTeam 'Microsoft.Insights/actionGroups@2023-01-01' = { tags: tags } + var query = ''' union (exceptions | where not(customDimensions.['Service Type'] == 'API Management')), (traces | where severityLevel >= 3 or (severityLevel >= 2 and customDimensions.SourceContext startswith "Digdir")) + | where operation_Name !startswith "GET /health/" | summarize Count = count() by Environment = tostring(customDimensions.AspNetCoreEnvironment), From 8d3b69fd1a1ff9f8ee252ec0a0df6f83d22ef203 Mon Sep 17 00:00:00 2001 From: Are Almaas Date: Thu, 10 Oct 2024 16:57:08 +0200 Subject: [PATCH 2/2] cleanup --- .azure/modules/functionApp/slackNotifier.bicep | 1 - 1 file changed, 1 deletion(-) diff --git a/.azure/modules/functionApp/slackNotifier.bicep b/.azure/modules/functionApp/slackNotifier.bicep index 6a1ec6c03..48e84f8f3 100644 --- a/.azure/modules/functionApp/slackNotifier.bicep +++ b/.azure/modules/functionApp/slackNotifier.bicep @@ -155,7 +155,6 @@ resource notifyDevTeam 'Microsoft.Insights/actionGroups@2023-01-01' = { tags: tags } - var query = ''' union (exceptions