Skip to content

Commit 751bbbb

Browse files
authored
Merge pull request #265706 from v-thepet/functions-monitor
Azure Monitor horizontals - Azure Functions
2 parents 82cf24b + 8b80217 commit 751bbbb

File tree

8 files changed

+109
-212
lines changed

8 files changed

+109
-212
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10940,6 +10940,11 @@
1094010940
"redirect_url": "/azure/azure-health-insights/overview",
1094110941
"redirect_document_id": false
1094210942
},
10943+
{
10944+
"source_path_from_root": "/articles/azure-functions/functions-monitor-log-analytics.md",
10945+
"redirect_url": "/azure/azure-functions/monitor-functions",
10946+
"redirect_document_id": false
10947+
},
1094310948
{
1094410949
"source_path_from_root": "/articles/cloud-services-php-create-web-role.md",
1094510950
"redirect_url": "/azure/cloud-services/cloud-services-php-create-web-role",

articles/azure-functions/TOC.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,6 @@
359359
displayName: availability zones, high-availability, zone redundancy, disaster recovery
360360
- name: Migrate to a zone-redundant plan
361361
href: ../reliability/migrate-functions.md?toc=%2fazure%2fazure-functions%2ftoc.json
362-
- name: Monitor function executions
363-
href: functions-monitoring.md
364-
displayName: App Insights, Application Insights, logs, logging
365362
- name: Diagnostics
366363
href: functions-diagnostics.md
367364
- name: Consumption plan costs
@@ -569,21 +566,21 @@
569566
displayName: upgrade, migrate, language stack
570567
- name: Monitor
571568
items:
572-
- name: Monitor function apps with Azure Monitor
569+
- name: Monitor
573570
href: monitor-functions.md
574571
displayName: monitor metrics
572+
- name: Monitor function executions
573+
href: functions-monitoring.md
574+
displayName: App Insights, Application Insights, logs, logging
575575
- name: Configure monitoring
576576
href: configure-monitoring.md
577577
displayName: App Insights, Application Insights, logs, logging
578578
- name: Analyze telemetry data
579579
href: analyze-telemetry-data.md
580580
displayName: App Insights, Application Insights, Kusto
581-
- name: Streaming logs
581+
- name: Stream execution logs
582582
href: streaming-logs.md
583583
displayName: monitoring
584-
- name: Diagnostic logs
585-
href: functions-monitor-log-analytics.md
586-
displayName: Azure Monitor, Kusto, Log Analytics, metrics
587584
- name: Authenticate
588585
items:
589586
- name: Configure auth providers
@@ -1021,7 +1018,7 @@
10211018
href: functions-host-json.md
10221019
- name: host.json 1.x reference
10231020
href: functions-host-json-v1.md
1024-
- name: Monitoring data
1021+
- name: Monitoring data reference
10251022
href: monitor-functions-reference.md
10261023
- name: Networking FAQ
10271024
href: functions-networking-faq.yml

articles/azure-functions/functions-monitor-log-analytics.md

Lines changed: 0 additions & 122 deletions
This file was deleted.
Lines changed: 32 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,59 @@
11
---
2-
title: Monitoring Azure Functions data reference
3-
description: Important reference material needed when you monitor Azure Functions
2+
title: Monitoring data reference for Azure Functions
3+
description: This article contains important reference material you need when you monitor Azure Functions.
4+
ms.date: 03/08/2024
5+
ms.custom: horz-monitor
46
ms.topic: reference
57
ms.service: azure-functions
6-
ms.custom: subject-monitoring
7-
ms.date: 07/05/2022
88
---
99

10-
# Monitoring Azure Functions data reference
1110

12-
This reference applies to the use of Azure Monitor for monitoring function apps hosted in Azure Functions. See [Monitoring function app with Azure Monitor](monitor-functions.md) for details on using Azure Monitor to collect and analyze monitoring data from your function apps.
11+
# Azure Functions monitoring data reference
1312

14-
See [Monitor Azure Functions](functions-monitoring.md) for details on using Application Insights to collect and analyze log data from individual functions in your function app.
13+
[!INCLUDE [horz-monitor-ref-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-intro.md)]
1514

16-
## Metrics
15+
See [Monitor Azure Functions](monitor-functions.md) for details on the data you can collect for Azure Functions and how to use it.
1716

18-
This section lists all the automatically collected platform metrics collected for Azure Functions.
17+
See [Monitor executions in Azure Functions](functions-monitoring.md) for details on using Application Insights to collect and analyze log data from individual functions in your function app.
1918

20-
### Azure Functions specific metrics
19+
[!INCLUDE [horz-monitor-ref-metrics-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-intro.md)]
2120

2221
There are two metrics specific to Functions that are of interest:
2322

2423
| Metric | Description |
2524
| ---- | ---- |
26-
| **FunctionExecutionCount** | Function execution count indicates the number of times your function app has executed. This value correlates to the number of times a function runs in your app. This metric isn't currently supported for Premium and Dedicated (App Service) plans running on Linux.|
27-
| **FunctionExecutionUnits** | Function execution units are a combination of execution time and your memory usage. Memory data isn't a metric currently available through Azure Monitor. However, if you want to optimize the memory usage of your app, can use the performance counter data collected by Application Insights. This metric isn't currently supported for Premium and Dedicated (App Service) plans running on Linux.|
25+
| **FunctionExecutionCount** | Function execution count indicates the number of times your function app executed. This value correlates to the number of times a function runs in your app. This metric isn't currently supported for Premium and Dedicated (App Service) plans running on Linux.|
26+
| **FunctionExecutionUnits** | Function execution units are a combination of execution time and your memory usage. Memory data isn't a metric currently available through Azure Monitor. However, if you want to optimize the memory usage of your app, can use the performance counter data collected by Application Insights. This metric isn't currently supported for Premium and Dedicated (App Service) plans running on Linux.|
2827

2928
These metrics are used specifically when [estimating Consumption plan costs](functions-consumption-costs.md).
3029

31-
### General App Service metrics
30+
### Supported metrics for Microsoft.Web/sites
31+
The following table lists the metrics available for the Microsoft.Web/sites resource type. Most of these metrics apply to both FunctionApps and WebApps.
3232

33-
Aside from Azure Functions specific metrics, the App Service platform implements more metrics, which you can use to monitor function apps. For the complete list, see [metrics available to App Service apps](../app-service/web-sites-monitor.md#understand-metrics) and [Monitoring App Service data reference](../app-service/monitor-app-service-reference.md#metrics).
33+
[!INCLUDE [horz-monitor-ref-metrics-tableheader](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-tableheader.md)]
34+
[!INCLUDE [Microsoft.Web/sites](~/azure-reference-other-repo/azure-monitor-ref/supported-metrics/includes/microsoft-web-sites-metrics-include.md)]
3435

35-
## Metric Dimensions
36+
[!INCLUDE [horz-monitor-ref-metrics-dimensions-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions-intro.md)]
3637

37-
For more information on what metric dimensions are, see [Multi-dimensional metrics](../azure-monitor/essentials/data-platform-metrics.md#multi-dimensional-metrics).
38+
[!INCLUDE [horz-monitor-ref-no-metrics-dimensions](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-no-metrics-dimensions.md)]
3839

39-
Azure Functions doesn't have any metrics that contain dimensions.
40+
[!INCLUDE [horz-monitor-ref-resource-logs](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-resource-logs.md)]
4041

41-
## Resource logs
42+
### Supported resource logs for Microsoft.Web/sites
43+
[!INCLUDE [Microsoft.Web/sites](~/azure-reference-other-repo/azure-monitor-ref/supported-logs/includes/microsoft-web-sites-logs-include.md)]
4244

43-
This section lists the types of resource logs you can collect for your function apps.
45+
The log specific to Azure Functions is **FunctionAppLogs**.
4446

45-
| Log type | Description |
46-
|-|-|
47-
| FunctionAppLogs | Function app logs |
47+
For more information, see the [App Service monitoring data reference](/azure/app-service/monitor-app-service-reference#metrics).
4848

49-
For more information, see [Monitoring App Service data reference](../app-service/monitor-app-service-reference.md#resource-logs).
49+
[!INCLUDE [horz-monitor-ref-logs-tables](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-logs-tables.md)]
50+
### App Services
51+
Microsoft.Web/sites
52+
- [FunctionAppLogs](/azure/azure-monitor/reference/tables/functionapplogs)
5053

51-
For reference, see a list of [all resource logs category types supported in Azure Monitor](../azure-monitor/essentials/resource-logs-schema.md).
54+
[!INCLUDE [horz-monitor-ref-activity-log](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-activity-log.md)]
5255

53-
## Azure Monitor Logs tables
54-
55-
Azure Functions uses Kusto tables from Azure Monitor Logs. You can query the [FunctionAppLogs table](/azure/azure-monitor/reference/tables/functionapplogs) with Log Analytics. For more information, see the [Azure Monitor Log Table Reference](/azure/azure-monitor/reference/tables/tables-resourcetype#app-services).
56-
57-
## Activity log
58-
59-
The following table lists the operations related to Azure Functions that may be created in the Activity log.
56+
The following table lists operations related to Azure Functions that may be created in the activity log.
6057

6158
| Operation | Description |
6259
|:---|:---|
@@ -67,11 +64,9 @@ The following table lists the operations related to Azure Functions that may be
6764
|Microsoft.Web/sites/stop/action| Function app stopped.|
6865
|Microsoft.Web/sites/write| Change a function app setting, such as runtime version or enable remote debugging.|
6966

70-
You may also find logged operations that relate to the underlying App Service behaviors. For a more complete list, see [Resource Provider Operations](../role-based-access-control/resource-provider-operations.md#microsoftweb).
71-
72-
For more information on the schema of Activity Log entries, see [Activity Log schema](../azure-monitor/essentials/activity-log-schema.md).
67+
You may also find logged operations that relate to the underlying App Service behaviors. For a more complete list, see [Microsoft.Web resource provider operations](/azure/role-based-access-control/resource-provider-operations#microsoftweb).
7368

74-
## See Also
69+
## Related content
7570

76-
* See [Monitoring Azure Functions](monitor-functions.md) for a description of monitoring Azure Functions.
77-
* See [Monitoring Azure resources with Azure Monitor](../azure-monitor/essentials/monitor-azure-resource.md) for details on monitoring Azure resources.
71+
- See [Monitor Azure Functions](monitor-functions.md) for a description of monitoring Azure Functions.
72+
- See [Monitor Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for details on monitoring Azure resources.

0 commit comments

Comments
 (0)