Skip to content

Commit 44ecfba

Browse files
authored
Merge pull request #111201 from lgayhardt/appinsightsdalecustommetrics0420
App Insights custom metrics overview from Dale
2 parents e3b06f7 + 8ca5e58 commit 44ecfba

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

articles/azure-monitor/platform/metrics-custom-overview.md

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,42 @@
11
---
2-
title: Custom metrics in Azure Monitor (preview)
2+
title: Custom metrics in Azure Monitor
33
description: Learn about custom metrics in Azure Monitor and how they are modeled.
44
author: ancav
55
services: azure-monitor
6+
67
ms.topic: conceptual
7-
ms.date: 04/08/2020
8+
ms.date: 09/09/2019
89
ms.author: ancav
910
ms.subservice: metrics
1011
---
11-
# Custom metrics in Azure Monitor (preview)
12+
# Custom metrics in Azure Monitor
1213

13-
As you deploy resources and applications in Azure, you'll want to start collecting telemetry to gain insights into their performance and health. Azure makes some metrics available to you out of the box. These metrics are called standard or platform. However, they're limited in nature. You might want to collect some custom performance indicators or business-specific metrics to provide deeper insights.
14+
As you deploy resources and applications in Azure, you'll want to start collecting telemetry to gain insights into their performance and health. Azure makes some metrics available to you out of the box. These metrics are called [standard or platform](https://docs.microsoft.com/azure/azure-monitor/platform/metrics-supported). However, they're limited in nature. You might want to collect some custom performance indicators or business-specific metrics to provide deeper insights.
1415
These **custom** metrics can be collected via your application telemetry, an agent that runs on your Azure resources, or even an outside-in monitoring system and submitted directly to Azure Monitor. After they're published to Azure Monitor, you can browse, query, and alert on custom metrics for your Azure resources and applications side by side with the standard metrics emitted by Azure.
1516

16-
## Send custom metrics
17+
## Methods to send custom metrics
18+
1719
Custom metrics can be sent to Azure Monitor via several methods:
1820
- Instrument your application by using the Azure Application Insights SDK and send custom telemetry to Azure Monitor.
1921
- Install the Windows Azure Diagnostics (WAD) extension on your [Azure VM](collect-custom-metrics-guestos-resource-manager-vm.md), [virtual machine scale set](collect-custom-metrics-guestos-resource-manager-vmss.md), [classic VM](collect-custom-metrics-guestos-vm-classic.md), or [classic Cloud Services](collect-custom-metrics-guestos-vm-cloud-service-classic.md) and send performance counters to Azure Monitor.
2022
- Install the [InfluxData Telegraf agent](collect-custom-metrics-linux-telegraf.md) on your Azure Linux VM and send metrics by using the Azure Monitor output plug-in.
21-
- Send custom metrics [directly to the Azure Monitor REST API](../../azure-monitor/platform/metrics-store-custom-rest-api.md), `https://<azureregion>.monitoring.azure.com/<AzureResourceID>/metrics`.
23+
- Send custom metrics [directly to the Azure Monitor REST API](../../azure-monitor/platform/metrics-store-custom-rest-api.md), `https://<azureregion>.monitoring.azure.com/<AzureResourceID>/metrics`.
24+
25+
## Pricing model
26+
27+
There is no cost to ingest standard metrics (platform metrics) into Azure Monitor metrics store. Custom metrics ingested into the Azure Monitor metrics store will be billed per MByte with each custom metric datapoint written considered as 8 bytes in size. All ingested metrics are retained for 90 days.
2228

23-
> [!NOTE]
24-
> Custom metrics are currently in public preview. After they are released for general availability (GA), using them will result in additional charges. For more information, see [Azure Monitor Pricing](https://azure.microsoft.com/pricing/details/monitor/).
29+
Metric queries will be charged based on the number of standard API calls. A standard API call is a call that analyzes 1,440 data points (1,440 is also the total number of data points that can be stored per metric per day). If an API call analyzes more than 1,440 data points, then it will count as multiple standard API calls. If an API call analyzes less than 1,440 data points, it will count as less than one API call. The number of standard API calls is calculated every day as the total number of data points analyzed per day divided by 1,440.
30+
31+
Specific price details for custom metrics and metric queries are available on the [Azure Monitor pricing page](https://azure.microsoft.com/pricing/details/monitor/).
32+
33+
> [!NOTE]
34+
> Metrics sent to Azure Monitor via the Application Insights SDK will be billed as ingested log data, and incur additional metrics charges only if the Application Insights feature [Enable alerting on custom metric dimensions](https://docs.microsoft.com/azure/azure-monitor/app/pre-aggregated-metrics-log-metrics#custom-metrics-dimensions-and-pre-aggregation) has been selected. Learn more about the [Application Insights pricing model](https://docs.microsoft.com/azure/azure-monitor/app/pricing#pricing-model) and [prices in your region](https://azure.microsoft.com/pricing/details/monitor/).
35+
36+
> [!NOTE]
37+
> Check the [Azure Monitor pricing page](https://azure.microsoft.com/pricing/details/monitor/) for details on when billing will be enabled for custom metrics and metrics queries.
38+
39+
## How to send custom metrics
2540

2641
When you send custom metrics to Azure Monitor, each data point, or value, reported must include the following information.
2742

@@ -31,15 +46,15 @@ To submit custom metrics to Azure Monitor, the entity that submits the metric ne
3146
2. [Azure AD Service Principal](https://docs.microsoft.com/azure/active-directory/develop/app-objects-and-service-principals). In this scenario, an Azure AD application, or service, can be assigned permissions to emit metrics about an Azure resource.
3247
To authenticate the request, Azure Monitor validates the application token by using Azure AD public keys. The existing **Monitoring Metrics Publisher** role already has this permission. It's available in the Azure portal. The service principal, depending on what resources it emits custom metrics for, can be given the **Monitoring Metrics Publisher** role at the scope required. Examples are a subscription, resource group, or specific resource.
3348

34-
> [!NOTE]
49+
> [!TIP]
3550
> When you request an Azure AD token to emit custom metrics, ensure that the audience or resource the token is requested for is `https://monitoring.azure.com/`. Be sure to include the trailing '/'.
3651
3752
### Subject
3853
This property captures which Azure resource ID the custom metric is reported for. This information will be encoded in the URL of the API call being made. Each API can only submit metric values for a single Azure resource.
3954

4055
> [!NOTE]
4156
> You can't emit custom metrics against the resource ID of a resource group or subscription.
42-
>
57+
4358

4459
### Region
4560
This property captures what Azure region the resource you're emitting metrics for is deployed in. Metrics must be emitted to the same Azure Monitor regional endpoint as the region the resource is deployed in. For example, custom metrics for a VM deployed in West US must be sent to the WestUS regional Azure Monitor endpoint. The region information is also encoded in the URL of the API call.
@@ -59,7 +74,7 @@ Namespaces are a way to categorize or group similar metrics together. By using n
5974
**Name** is the name of the metric that's being reported. Usually, the name is descriptive enough to help identify what's measured. An example is a metric that measures the number of memory bytes used on a given VM. It might have a metric name like **Memory Bytes In Use**.
6075

6176
### Dimension keys
62-
A dimension is a key or value pair that helps describe additional characteristics about the metric being collected. By using the additional characteristics, you can collect more information about the metric, which allows for deeper insights. For example, the **Memory Bytes In Use** metric might have a dimension key called **Process** that captures how many bytes of memory each process on a VM consumes. By using this key, you can filter the metric to see how much memory-specific processes use or to identify the top five processes by memory usage.
77+
A dimension is a key or value pair that helps describe additional characteristics about the metric being collected. By using the additional characteristics, you can collect more information about the metric, which allows for deeper insights. For example, the **Memory Bytes In Use** metric might have a dimension key called **Process** that captures how many bytes of memory each process on a VM consumes. By using this key, you can filter the metric to see how much memory specific processes use or to identify the top five processes by memory usage.
6378
Dimensions are optional, not all metrics may have dimensions. A custom metric can have up to 10 dimensions.
6479

6580
### Dimension values
@@ -80,7 +95,7 @@ Azure Monitor stores all metrics at one-minute granularity intervals. We underst
8095
* **Sum**: The summation of all the observed values from all the samples and measurements during the minute.
8196
* **Count**: The number of samples and measurements taken during the minute.
8297

83-
For example, if there were 4 sign-in transactions to your app during a given a minute, the resulting measured latencies for each might be as follows:
98+
For example, if there were four sign-in transactions to your app during a given a minute, the resulting measured latencies for each might be as follows:
8499

85100
|Transaction 1|Transaction 2|Transaction 3|Transaction 4|
86101
|---|---|---|---|
@@ -212,4 +227,4 @@ Use custom metrics from different services:
212227
- [Linux Virtual Machine using the Telegraf agent](collect-custom-metrics-linux-telegraf.md)
213228
- [REST API](../../azure-monitor/platform/metrics-store-custom-rest-api.md)
214229
- [Classic Cloud Services](collect-custom-metrics-guestos-vm-cloud-service-classic.md)
215-
230+

0 commit comments

Comments
 (0)