You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/powershell.md
+30-10Lines changed: 30 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Create a new .json file - let's call it `template1.json` in this example. Copy t
40
40
"appName": {
41
41
"type": "string",
42
42
"metadata": {
43
-
"description": "Enter the application name."
43
+
"description": "Enter the name of your Application Insights resource."
44
44
}
45
45
},
46
46
"appType": {
@@ -52,20 +52,39 @@ Create a new .json file - let's call it `template1.json` in this example. Copy t
52
52
"other"
53
53
],
54
54
"metadata": {
55
-
"description": "Enter the application type."
55
+
"description": "Enter the type of the monitored application."
56
56
}
57
57
},
58
58
"appLocation": {
59
59
"type": "string",
60
-
"defaultValue": "East US",
60
+
"defaultValue": "eastus",
61
+
"metadata": {
62
+
"description": "Enter the location of your Application Insights resource."
63
+
}
64
+
},
65
+
"retentionInDays": {
66
+
"type": "int",
67
+
"defaultValue": 90,
61
68
"allowedValues": [
62
-
"South Central US",
63
-
"West Europe",
64
-
"East US",
65
-
"North Europe"
69
+
30,
70
+
60,
71
+
90,
72
+
120,
73
+
180,
74
+
270,
75
+
365,
76
+
550,
77
+
730
66
78
],
67
79
"metadata": {
68
-
"description": "Enter the application location."
80
+
"description": "Data retention in days"
81
+
}
82
+
},
83
+
"ImmediatePurgeDataOn30Days": {
84
+
"type": "bool",
85
+
"defaultValue": false,
86
+
"metadata": {
87
+
"description": "If set to true when changing retention to 30 days, older data will be immediately deleted. Use this with extreme caution. This only applies when retention is being set to 30 days."
69
88
}
70
89
},
71
90
"priceCode": {
@@ -76,7 +95,7 @@ Create a new .json file - let's call it `template1.json` in this example. Copy t
76
95
2
77
96
],
78
97
"metadata": {
79
-
"description": "1 = Per GB (Basic), 2 = Per Node (Enterprise)"
98
+
"description": "Pricing plan: 1 = Per GB (or legacy Basic plan), 2 = Per Node (legacy Enterprise plan)"
80
99
}
81
100
},
82
101
"dailyQuota": {
@@ -135,6 +154,7 @@ Create a new .json file - let's call it `template1.json` in this example. Copy t
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/pricing.md
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,13 @@ ms.author: dalek
19
19
# Manage usage and costs for Application Insights
20
20
21
21
> [!NOTE]
22
-
> This article describes how to analyze data usage Application Insights. Refer to the following articles for related information.
23
-
> -[Monitoring usage and estimated costs](../../monitoring-and-diagnostics/monitoring-usage-and-estimated-costs.md) describes how to view usage and estimated costs across multiple Azure monitoring features for different pricing models. It also describes how to change your pricing model.
22
+
> This article describes how to understand and control your costs for Application Insights. A related article, [Monitoring usage and estimated costs](usage-estimated-costs.md) describes how to view usage and estimated costs across multiple Azure monitoring features for different pricing models.
24
23
25
24
If you have questions about how pricing works for Application Insights, you can post a question in our [forum](https://social.msdn.microsoft.com/Forums/home?forum=ApplicationInsights).
26
25
27
26
## Pricing model
28
27
29
-
Pricing for [Azure Application Insights][start] is based on data volume ingested and optionally for longer data retention. Each Application Insights resource is charged as a separate service and contributes to the bill for your Azure subscription.
28
+
The pricing for [Azure Application Insights][start] is a Pay-As-You-Go model, based on data volume ingested and optionally for longer data retention. Each Application Insights resource is charged as a separate service and contributes to the bill for your Azure subscription.
30
29
31
30
### Data volume details
32
31
@@ -43,6 +42,22 @@ Pricing for [Azure Application Insights][start] is based on data volume ingested
43
42
44
43
There's no separate charge for *ping tests* of a single page. Telemetry from ping tests and multi-step tests is charged the same as other telemetry from your app.
45
44
45
+
## Estimating the costs to manage your application
46
+
47
+
If you're not yet using Application Insights, you can use the [Azure Monitor pricing calculator](https://azure.microsoft.com/pricing/calculator/?service=monitor) to estimate the cost of using Application Insights. Start by entering "Azure Monitor" in the Search box, and clicking on the resulting Azure Monitor tile. Scroll down the page to Azure Monitor, and select Application Insights from the Type dropdown. Here you can enter the number of GB of data you expect to collect per month, so they question is how much data will Application Insights collect monitoring your application.
48
+
49
+
There are two approaches to address this: use of default monitoring and adaptive sampling which is available in the ASP.NET SDK, or estimtate you likley data ingestion based on what other similar customers have seen.
50
+
51
+
### Data collection when using sampling
52
+
53
+
With the ASP.NET SDK's [adaptive sampling](https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling#adaptive-sampling-in-your-aspnetaspnet-core-web-applications), the data volume is adjusted automatically to keep within a specified maximum rate of traffic for default Application Insights monitoring. If the application produces a low amount of telemetry, such as when debugging or due to low usage, items won't be dropped by the sampling processor as long as volume is below the configured events per second level. For a high volume application, with the default threshold of 5 events per second, adaptive sampling will limit the number of daily events to 432,000. Using a typical average event size of 1 KB, this corresponds to 13.4 GB of telemetry per 31-day month per node hosting your application (since the sampling is done local to each node.)
54
+
55
+
For SDKs which don't support adaptive sampling, you can employ [ingestion sampling)[https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling#ingestion-sampling] which samples when the data is receved by Application Insights based on a percentage of data to retain, or [fixed-rate sampling for ASP.NET, ASP.NET Core, and Java websites](https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling#fixed-rate-sampling-for-aspnet-aspnet-core-and-java-websites) to reduce the traffic sent from your web server and web browsers
56
+
57
+
### Learn from what similar customers collect
58
+
59
+
In the Azure Monitoring Pricing calculator for Application Insights, if you enable the "Estimate data volume based on application activity" functionality, you can provide inputs about your application (requests per month and page views per month, in case you will collect client side telemetry), and then the calculator will tell you the median and 90th percentile amount of data collected by similar applications. Of course these applicatons span the range of Application Insights configuration (e.g some have default [sampling](../../azure-monitor/app/sampling.md), some have no sampling etc.), so you still have the control to reduce the volume of data you ingest far below the median level using sampling. But this is a starting point to understand what other, similar customers are seeing.
60
+
46
61
## Understand your usage and estimate costs
47
62
48
63
Application Insights makes it easy to understand what your costs are likely to be based on recent usage patterns. To get started, in the Azure portal, for the Application Insights resource, go to the **Usage and estimated costs** page:
@@ -61,6 +76,13 @@ Application Insights charges are added to your Azure bill. You can see details o
61
76
62
77

63
78
79
+
## Viewing Application Insights usage on your Azure bill
80
+
81
+
Azure provides a great deal of useful functionality in the [Azure Cost Management + Billing](https://docs.microsoft.com/azure/cost-management/quick-acm-cost-analysis?toc=/azure/billing/TOC.json) hub. For instance, the "Cost analysis" functionality enables you to view your spends for Azure resources. Adding a filter by resource type (to microsoft.insights/components for Application Insights) will allow you see track your spend.
82
+
83
+
More understanding of your usage can be gained by [downloading your usage from the Azure Portal](https://docs.microsoft.com/azure/billing/billing-download-azure-invoice-daily-usage-date#download-usage-in-azure-portal).
84
+
In the downloaded spreadsheet you can see usage per Azure resource per day. In this Excel spreadsheet, usage from your Application Insights resources can be found by first filtering on the "Meter Category" column to show "Application Insights" and "Log Analytics", and then adding a filter on the "Instance ID" column which is "contains microsoft.insights/components". Most Application Insights usage is reported on meters with the Meter Category of Log Analytics, since there is a single logs backend for all Azure Monitor components. Only Application Insights resources on legacy pricing tiers and multi-step web tests are reported with a Meter Category of Application Insights. The usage is shown in the "Consumed Quantity" column and the unit for each entry is shown in the "Unit of Measure" column. More details are available to help you [understand your Microsoft Azure bill](https://docs.microsoft.com/azure/billing/billing-understand-your-bill).
85
+
64
86
## Managing your data volume
65
87
66
88
To understand how much data your app is sending, you can:
@@ -152,16 +174,15 @@ In each retained record, `itemCount` indicates the number of original records th
152
174
153
175
## Change the data retention period
154
176
155
-
> [!NOTE]
156
-
> We've temporarily removed this feature while we address a possible issue. We'll have it back by the first week in October 2019.
157
-
158
177
The default retention for Application Insights resources is 90 days. Different retention periods can be selected for each Application Insights resource. The full set of available retention periods is 30, 60, 90, 120, 180, 270, 365, 550 or 730 days.
159
178
160
179
To change the retention, from your Application Insights resource, go to the **Usage and Estimated Costs** page and select the **Data Retention** option:
161
180
162
181

163
182
164
-
When billing is enabled for longer retention, data kept longer than 90 days will be billed as the same rate as is currently billed for Azure Log Analytics data retention.
183
+
The retention can also be [set via ARM](https://docs.microsoft.com/en-us/azure/azure-monitor/app/powershell) using the `retentionInDays` parameter. Additionally, if you set the data retention to 30 days, you can trigger an immediate purge of older data using the `immediatePurgeDataOn30Days` parameter, which may be useful for compliance-related scenarios. This functionality is only exposed via ARM.
184
+
185
+
When billing begins for longer retention in early December 2019, data kept longer than 90 days will be billed as the same rate as is currently billed for Azure Log Analytics data retention.
165
186
Learn more at the [Azure Monitor Pricing page](https://azure.microsoft.com/pricing/details/monitor/). Stay up-to-date on variable retention progress by [voting for this suggestion](https://feedback.azure.com/forums/357324-azure-monitor-application-insights/suggestions/17454031).
166
187
167
188
## Data transfer charges using Application Insights
Copy file name to clipboardExpand all lines: articles/azure-monitor/platform/usage-estimated-costs.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,9 @@ ms.subservice: ""
13
13
# Monitoring usage and estimated costs in Azure Monitor
14
14
15
15
> [!NOTE]
16
-
> This article describes how to view usage and estimated costs across multiple Azure monitoring features for different pricing models. Refer to the following articles for related information.
17
-
> -[Manage cost by controlling data volume and retention in Log Analytics](manage-cost-storage.md) describes how to control your costs by changing your data retention period.
18
-
> -[Analyze data usage in Log Analytics](../../azure-monitor/platform/data-usage.md) describes how to analyze and alert on your data usage.
19
-
> -[Manage pricing and data volume in Application Insights](../../azure-monitor/app/pricing.md) describes how to analyze data usage in Application Insights.
> This article, describes how to view usage and estimated costs across multiple Azure monitoring features for different pricing models. Related articles for specific components of Azure Monitor include:
17
+
> -[Manage usage and costs with Azure Monitor Logs](manage-cost-storage.md) describes how to control your costs by changing your data retention period, and how to analyze and alert on your data usage.
18
+
> -[Manage usage and costs for Application Insights](../../azure-monitor/app/pricing.md) describes how to analyze data usage in Application Insights.
22
19
23
20
In the Monitor hub of the Azure portal, the **Usage and estimated costs** page explains the usage of core monitoring features such as [alerting, metrics, notifications](https://azure.microsoft.com/pricing/details/monitor/), [Azure Log Analytics](https://azure.microsoft.com/pricing/details/log-analytics/), and [Azure Application Insights](https://azure.microsoft.com/pricing/details/application-insights/). For customers on the pricing plans available before April 2018, this also includes Log Analytics usage purchased through the Insights and Analytics offer.
24
21
@@ -36,9 +33,11 @@ Here’s another similar usage and cost summary. This example shows a subscripti
36
33
37
34

38
35
39
-
## New pricing model
36
+
## Pricing model
37
+
38
+
In April 2018, a [new monitoring pricing model was released](https://azure.microsoft.com/blog/introducing-a-new-way-to-purchase-azure-monitoring-services/). This features cloud-friendly, consumption-based pricing ("Pay-As-You-Go"). You only pay for what you use, without node-based commitments. Details of the new pricing model are available for [alerting, metrics, notifications](https://azure.microsoft.com/pricing/details/monitor/), [Log Analytics](https://azure.microsoft.com/pricing/details/log-analytics/) and [Application Insights](https://azure.microsoft.com/pricing/details/application-insights/).
40
39
41
-
In April 2018, a [new monitoring pricing model was released](https://azure.microsoft.com/blog/introducing-a-new-way-to-purchase-azure-monitoring-services/). This features cloud-friendly, consumption-based pricing. You only pay for what you use, without node-based commitments. Details of the new pricing model are available for [alerting, metrics, notifications](https://azure.microsoft.com/pricing/details/monitor/), [Log Analytics](https://azure.microsoft.com/pricing/details/log-analytics/)and [Application Insights](https://azure.microsoft.com/pricing/details/application-insights/).
40
+
In addition to the Pay-As-You-Go model, in September 2019, we added Capacity Reservations for Log Analytics which enable you to save as much as 25% compared to the Pay-As-You-Go price. The capacity reservation pricing enables you to buy a reservation starting at 100 GB/day. Any usage above the reservation level will be billed at the Pay-As-You-Go rate. [Learn more](https://azure.microsoft.com/pricing/details/monitor/)about Capacity Reservation pricing.
42
41
43
42
For customers onboarding to Log Analytics or Application Insights after April 2, 2018, the new pricing model is the only option. For customers who already use these services, moving to the new pricing model is optional.
44
43
@@ -107,4 +106,3 @@ As noted above, the is no longer a requirement to move all monitoring resources
107
106
108
107
Automating this change is documented for Application Insights using [Set-AzureRmApplicationInsightsPricingPlan](https://docs.microsoft.com/powershell/module/azurerm.applicationinsights/set-azurermapplicationinsightspricingplan) with ``-PricingPlan "Basic"``
109
108
and Log Analytics using [Set-AzureRmOperationalInsightsWorkspace](https://docs.microsoft.com/powershell/module/AzureRM.OperationalInsights/Set-AzureRmOperationalInsightsWorkspace) with ``-sku "PerGB2018"``.
0 commit comments