Setting Change: Logging Cost Controls
Atlas AVD sends its own logs and telemetry to the Log Analytics workspace and Application Insights resource the install created next to the Atlas web app. New installs limit what that costs: the workspace has a 1 GB daily cap, the web app and PostgreSQL server send only the log categories Atlas uses, and Application Insights keeps a 25% sample of requests. Deployments installed earlier have none of these limits, and every PostgreSQL log category alone can reach gigabytes a day. Three settings now apply the same limits to an existing deployment. Each one keeps your current behavior until an administrator chooses in Review settings.
Prerequisites
- A Super Administrator or platform operator, to decide in Review settings or to change the Global value
- These settings apply to the whole deployment, so they have only a Global value
Atlas Log Workspace Daily Cap
With the new default, Atlas sets a 1 GB daily ingestion cap on its own Log Analytics workspace (the atlas-*-logs workspace in the Atlas resource group) if the workspace has no cap.
- A cap that is already set, lower or higher, is never changed
- A workspace you brought yourself at install is never touched
- When the cap is reached, Azure stops collecting data in that workspace until the next day, including the logs the Atlas alert rules read
- Set 0 to leave the workspace uncapped
If your deployment needs more than 1 GB a day, raise the cap in Resources → Storage → Log Analytics. Changing this setting later does not change a cap Atlas has already set.
Atlas Diagnostic Logs: Named Categories Only
With the new default, the Atlas web app and PostgreSQL server send only the logs Atlas uses to the workspace, instead of every log category:
- Web app: App Service HTTP, console, platform and audit logs. The Atlas alert rules read the HTTP and console logs, so they keep working
- PostgreSQL server: the server log. Sessions, Query Store and table statistics are no longer sent
- Metrics are sent as before
- Atlas changes only its own two diagnostic settings, and only while they are as the install created them. A diagnostic setting you edited in Azure is left alone
Investigating a database performance problem and need Query Store data in Log Analytics? Turn the setting off. Atlas switches its PostgreSQL diagnostic setting back to every category within a day.
Application Insights Sampling
With the new default, Application Insights keeps 25% of the Atlas web app's requests and dependency calls instead of all of them.
- Every exception is still recorded: the app sends exceptions as log records, which are not sampled
- The Atlas alert rules read the web app's HTTP logs, not Application Insights, so sampling does not affect them
- Atlas writes the value to the web app's APPLICATIONINSIGHTS_SAMPLING_PERCENTAGE app setting. If you or the install already set that app setting, your value wins
- Applying a new value restarts the Atlas web app once
- Set 100 to keep every request
How to decide
- 1Open Settings → Matrix. If the update left settings for you to review, the Review settings page opens on its own (or follow the banner at the top of the app).
- 2For each of the three settings, choose Keep current behavior to keep logging as it is, or Use the new default to apply the limit.
- 3Click Save decisions. Atlas applies what you chose within a day.
You can change your mind later: edit the settings in the Global column of the Configuration Matrix (Diagnostics & Storage). New installs start with all three limits.