Skip to content

Commit fe9487d

Browse files
committed
updates
1 parent 152ba9d commit fe9487d

File tree

3 files changed

+65
-26
lines changed

3 files changed

+65
-26
lines changed

articles/azure-monitor/app/powershell.md

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Create a new .json file - let's call it `template1.json` in this example. Copy t
4040
"appName": {
4141
"type": "string",
4242
"metadata": {
43-
"description": "Enter the application name."
43+
"description": "Enter the name of your Application Insights resource."
4444
}
4545
},
4646
"appType": {
@@ -52,20 +52,39 @@ Create a new .json file - let's call it `template1.json` in this example. Copy t
5252
"other"
5353
],
5454
"metadata": {
55-
"description": "Enter the application type."
55+
"description": "Enter the type of the monitored application."
5656
}
5757
},
5858
"appLocation": {
5959
"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,
6168
"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
6678
],
6779
"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."
6988
}
7089
},
7190
"priceCode": {
@@ -76,7 +95,7 @@ Create a new .json file - let's call it `template1.json` in this example. Copy t
7695
2
7796
],
7897
"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)"
8099
}
81100
},
82101
"dailyQuota": {
@@ -135,6 +154,7 @@ Create a new .json file - let's call it `template1.json` in this example. Copy t
135154
],
136155
"properties": {
137156
"CurrentBillingFeatures": "[variables('pricePlan')]",
157+
"retentionInDays": "[variables('retentionInDays')]",
138158
"DataVolumeCap": {
139159
"Cap": "[parameters('dailyQuota')]",
140160
"WarningThreshold": "[parameters('warningThreshold')]",
@@ -445,4 +465,4 @@ Other automation articles:
445465
* [Create web tests](https://azure.microsoft.com/blog/creating-a-web-test-alert-programmatically-with-application-insights/)
446466
* [Send Azure Diagnostics to Application Insights](powershell-azure-diagnostics.md)
447467
* [Deploy to Azure from GitHub](https://blogs.msdn.com/b/webdev/archive/2015/09/16/deploy-to-azure-from-github-with-application-insights.aspx)
448-
* [Create release annotations](https://github.com/Microsoft/ApplicationInsights-Home/blob/master/API/CreateReleaseAnnotation.ps1)
468+
* [Create release annotations](https://github.com/Microsoft/ApplicationInsights-Home/blob/master/API/CreateReleaseAnnotation.ps1)

articles/azure-monitor/app/pricing.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ ms.author: dalek
1919
# Manage usage and costs for Application Insights
2020

2121
> [!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.
2423
2524
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).
2625

2726
## Pricing model
2827

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.
3029

3130
### Data volume details
3231

@@ -43,6 +42,22 @@ Pricing for [Azure Application Insights][start] is based on data volume ingested
4342

4443
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.
4544

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+
4661
## Understand your usage and estimate costs
4762

4863
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
6176

6277
![In the left menu, select Billing](./media/pricing/02-billing.png)
6378

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+
6486
## Managing your data volume
6587

6688
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
152174

153175
## Change the data retention period
154176

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-
158177
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.
159178

160179
To change the retention, from your Application Insights resource, go to the **Usage and Estimated Costs** page and select the **Data Retention** option:
161180

162181
![Adjust the daily telemetry volume cap](./media/pricing/pricing-005.png)
163182

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.
165186
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).
166187

167188
## Data transfer charges using Application Insights

articles/azure-monitor/platform/usage-estimated-costs.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ ms.subservice: ""
1313
# Monitoring usage and estimated costs in Azure Monitor
1414

1515
> [!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.
20-
21-
[!INCLUDE [updated-for-az](../../../includes/updated-for-az.md)]
16+
> 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.
2219
2320
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.
2421

@@ -36,9 +33,11 @@ Here’s another similar usage and cost summary. This example shows a subscripti
3633

3734
![Usage and estimated costs portal screenshot - April 2018 pricing](./media/usage-estimated-costs/003.png)
3835

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/).
4039

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.
4241

4342
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.
4443

@@ -107,4 +106,3 @@ As noted above, the is no longer a requirement to move all monitoring resources
107106

108107
Automating this change is documented for Application Insights using [Set-AzureRmApplicationInsightsPricingPlan](https://docs.microsoft.com/powershell/module/azurerm.applicationinsights/set-azurermapplicationinsightspricingplan) with ``-PricingPlan "Basic"``
109108
and Log Analytics using [Set-AzureRmOperationalInsightsWorkspace](https://docs.microsoft.com/powershell/module/AzureRM.OperationalInsights/Set-AzureRmOperationalInsightsWorkspace) with ``-sku "PerGB2018"``.
110-

0 commit comments

Comments
 (0)