Azure Monitor cost and usage
This article describes the different ways that Azure Monitor charges for usage and how to evaluate charges on your Azure bill.
Tip
For strategies to reduce your Azure Monitor costs, see Cost optimization and Azure Monitor.
Pricing model
Azure Monitor uses a consumption-based pricing (pay-as-you-go) billing model where you only pay for what you use. Features of Azure Monitor that are enabled by default do not incur any charge, including collection and alerting on the Activity log and collection and analysis of platform metrics.
Several other features don't have a direct cost, but you instead pay for the ingestion and retention of data that they collect. The following table describes the different types of usage that are charged in Azure Monitor. Detailed current pricing for each is provided in Azure Monitor pricing.
Type | Description |
---|---|
Logs | Ingestion, retention, and export of data in Log Analytics workspaces and legacy Application insights resources. This will typically be the bulk of Azure Monitor charges for most customers. There is no charge for querying this data except in the case of Basic Logs or Archived Logs. Charges for Logs can vary significantly on the configuration that you choose. See Azure Monitor Logs pricing details for details on how charges for Logs data are calculated and the different pricing tiers available. |
Platform Logs | Processing of diagnostic and auditing information is charged for certain services when sent to destinations other than a Log Analytics workspace. There's no direct charge when this data is sent to a Log Analytics workspace, but there is a charge for the workspace data ingestion and collection. |
Metrics | There is no charge for standard metrics collected from Azure resources. There is a cost for collecting custom metrics and for retrieving metrics from the REST API. |
Prometheus Metrics | Pricing for Azure Monitor managed service for Prometheus is based on data samples ingested and query samples processed. Data is retained for 18 months at no extra charge. |
Alerts | Alerts are charged based on the type and number of signals used by the alert rule, its frequency, and the type of notification used in response. For log alerts configured for at scale monitoring, the cost will also depend on the number of time series created by the dimensions resulting from your query. |
Web tests | There is a cost for standard web tests and multi-step web tests in Application Insights. Multi-step web tests have been deprecated. |
Data transfer charges
Sending data to Azure Monitor can incur data bandwidth charges. As described in the Azure Bandwidth pricing page, data transfer between Azure services located in two regions charged as outbound data transfer at the normal rate. Inbound data transfer is free. Data transfer charges for Azure Monitor though are typically very small compared to the costs for data ingestion and retention. You should focus more on your ingested data volume to control your costs.
Note
Data sent to a different region using Diagnostic Settings does not incur data transfer charges
View Azure Monitor usage and charges
There are two primary tools to view, analyze and optimize your Azure Monitor costs. Each is described in detail in the following sections.
Tool | Description |
---|---|
Azure Cost Management + Billing | Gives you powerful capabilities use to understand your billed costs. There are multiple options to analyze your charges for different Azure Monitor features and their projected cost over time. |
Usage and Estimated Costs | Provides estimates of log data ingestion costs based on your daily usage patterns to help you optimize to use the most cost-effective logs pricing tier. |
Azure Cost Management + Billing
To get started analyzing your Azure Monitor charges, open Cost Management + Billing in the Azure portal. This tool includes several built-in dashboards for deep cost analysis like cost by resource and invoice details. Select Cost Management and then Cost analysis. Select your subscription or another scope.
Note
You might need additional access to use Cost Management data. See Assign access to Cost Management data.
To limit the view to Azure Monitor charges, create a filter for the following Service names. See Azure Monitor billing meter names for the different charges that are included in each service.
- Azure Monitor
- Log Analytics
- Insight and Analytics
- Application Insights
Other services such as Microsoft Defender for Cloud and Microsoft Sentinel also bill their usage against Log Analytics workspace resources, so you might want to add them to your filter. See Common cost analysis uses for details on using this view.
Note
Alternatively, you can go to the Overview page of a Log Analytics workspace or Application Insights resource and click View Cost in the upper right corner of the Essentials section. This will launch the Cost Analysis from Azure Cost Management + Billing already scoped to the workspace or application.
Automated mails and alerts
Rather than manually analyzing your costs in the Azure portal, you can automate delivery of information using the following methods.
- Daily cost analysis emails. Once you've configured your Cost Analysis view, you should click Subscribe at the top of the screen to receive regular email updates from Cost Analysis.
- Budget alerts. To be notified if there are significant increases in your spending, create a budget alerts for a single workspace or group of workspaces.
Export usage details
To gain deeper understanding of your usage and costs, create exports using Cost Analysis. See Tutorial: Create and manage exported data to learn how to automatically create a daily export you can use for regular analysis.
These exports are in CSV format and will contain a list of daily usage (billed quantity and cost) by resource, billing meter, and several other fields such as AdditionalInfo. You can use Microsoft Excel to do rich analyses of your usage not possible in the Cost Analytics experiences in the portal.
The usage export has both the number of units of usage and their cost. Consequently, you can use this export to see the amount of benefits you are receiving from various offers such as the Defender for Servers data allowance and the Microsoft Sentinel benefit for Microsoft 365 E5, A5, F5, and G5 customers.
For example, usage from Log Analytics can be found by first filtering on the Meter Category column to show
- Log Analytics (for Pay-as-you-go data ingestion and interactive Data Retention),
- Insight and Analytics (used by some of the legacy pricing tiers), and
- Azure Monitor (used by most other Log Analytics features such as Commitment Tiers, Basic Logs ingesting, Data Archive, Search Queries, Search Jobs, etc.)
Add a filter on the Instance ID column for contains workspace or contains cluster. The usage is shown in the Consumed Quantity column. The unit for each entry is shown in the Unit of Measure column.
Note
See Azure Monitor billing meter names for a reference of the billing meter names used by Azure Monitor in Azure Cost Management + Billing.
Usage and estimated costs
You can get additional usage details about Log Analytics workspaces and Application Insights resources from the Usage and Estimated Costs option for each.
Log Analytics workspace
To learn about your usage trends and optimize your costs using the most cost-effective commitment tier for your Log Analytics workspace, select Usage and Estimated Costs from the Log Analytics workspace menu in the Azure portal.
This view includes the following:
A. Estimated monthly charges based on usage from the past 31 days using the current pricing tier.
B. Estimated monthly charges using different commitment tiers.
C. Billable data ingestion by solution from the past 31 days.
To explore the data in more detail, click on the icon in the upper-right corner of either chart to work with the query in Log Analytics.
Application insights
To learn about your usage trends for your classic Application Insights resource, select Usage and Estimated Costs from the Applications menu in the Azure portal.
This view includes the following:
A. Estimated monthly charges based on usage from the past month.
B. Billable data ingestion by table from the past month.
To investigate your Application Insights usage more deeply, open the Metrics page, add the metric named Data point volume, and then select the Apply splitting option to split the data by "Telemetry item type".
View data allocation benefits
To view data allocation benefits from sources such as Microsoft Defender for Servers, Microsoft Sentinel benefit for Microsoft 365 E5, A5, F5 and G5 customers, or the Sentinel Free Trial, you need to export your usage details.
- Open the exported usage spreadsheet and filter the Instance ID column to your workspace. To select all of your workspaces in the spreadsheet, filter the Instance ID column to "contains /workspaces/".
- Filter the ResourceRate column to show only rows where this is equal to zero. Now you will see the data allocations from these various sources.
Note
Data allocations from Defender for Servers 500 MB/server/day will appear in rows with the meter name "Data Included per Node" and the meter category to "Insight and Analytics" (the name of a legacy offer still used with this meter.) If the workspace is in the legacy Per Node Log Analytics pricing tier, this meter will also include the data allocations from this Log Analytics pricing tier.
Operations Management Suite subscription entitlements
Customers who purchased Microsoft Operations Management Suite E1 and E2 are eligible for per-node data ingestion entitlements for Log Analytics and Application Insights. Each Application Insights node includes up to 200 MB of data ingested per day (separate from Log Analytics data ingestion), with 90-day data retention at no extra cost.
To receive these entitlements for Log Analytics workspaces or Application Insights resources in a subscription, they must use the Per-Node (OMS) pricing tier. This entitlement isn't visible in the estimated costs shown in the Usage and estimated cost pane.
Depending on the number of nodes of the suite that your organization purchased, moving some subscriptions into a Per GB (pay-as-you-go) pricing tier might be advantageous, but this requires careful consideration.
Also, if you move a subscription to the new Azure monitoring pricing model in April 2018, the Per GB tier is the only tier available. Moving a subscription to the new Azure monitoring pricing model isn't advisable if you have an Operations Management Suite subscription.
Tip
If your organization has Microsoft Operations Management Suite E1 or E2, it's usually best to keep your Log Analytics workspaces in the Per-Node (OMS) pricing tier and your Application Insights resources in the Enterprise pricing tier.
Next steps
- See Azure Monitor Logs pricing details for details on how charges are calculated for data in a Log Analytics workspace and different configuration options to reduce your charges.
- See Analyze usage in Log Analytics workspace for details on analyzing the data in your workspace to determine to source of any higher than expected usage and opportunities to reduce your amount of data collected.
- See Set daily cap on Log Analytics workspace to control your costs by setting a daily limit on the amount of data that might be ingested in a workspace.
- See Azure Monitor best practices - Cost management for best practices on configuring and managing Azure Monitor to minimize your charges.
Feedback
Submit and view feedback for