-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/observability: scripts and doc updates (#65)
* Observability scripts and resource provisioning #61 * Update high level design image * Doc on observability
- Loading branch information
Showing
17 changed files
with
463 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// ------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. | ||
// ------------------------------------------------------------ | ||
@minLength(3) | ||
@maxLength(24) | ||
@description('Azure Log Analytics and App Insights Account name which is not already in use.') | ||
param workspaceAccountName string | ||
|
||
@description('Azure Log Analytics account location') | ||
@maxLength(20) | ||
param monitorAccountLocation string = resourceGroup().location | ||
|
||
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2022-10-01' = { | ||
name: workspaceAccountName | ||
location: monitorAccountLocation | ||
properties: { | ||
sku: { | ||
name: 'PerGB2018' | ||
} | ||
retentionInDays: 30 | ||
features: { | ||
enableLogAccessUsingOnlyResourcePermissions: true | ||
} | ||
workspaceCapping: { | ||
dailyQuotaGb: -1 | ||
} | ||
publicNetworkAccessForIngestion: 'Enabled' | ||
publicNetworkAccessForQuery: 'Enabled' | ||
} | ||
} | ||
|
||
resource appInsightsComponent 'microsoft.insights/components@2020-02-02' = { | ||
name: workspaceAccountName | ||
location: monitorAccountLocation | ||
kind: 'web' | ||
properties: { | ||
Application_Type: 'web' | ||
Flow_Type: 'Bluefield' | ||
Request_Source: 'rest' | ||
RetentionInDays: 90 | ||
WorkspaceResourceId: logAnalytics.id | ||
IngestionMode: 'LogAnalytics' | ||
publicNetworkAccessForIngestion: 'Enabled' | ||
publicNetworkAccessForQuery: 'Enabled' | ||
} | ||
} | ||
|
||
output instrumentationKey string = appInsightsComponent.properties.InstrumentationKey | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.