Skip to content

Commit 2dca541

Browse files
authored
Merge pull request #267635 from v-thepet/datashare-monitor
Azure Monitor horizontals - Azure Data Share
2 parents f253011 + 3fa2218 commit 2dca541

File tree

4 files changed

+164
-13
lines changed

4 files changed

+164
-13
lines changed

articles/data-share/TOC.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
- name: Revoke a share subscription
6767
href: how-to-revoke-share-subscription.md
6868
- name: Monitor
69+
href: monitor-data-share.md
70+
- name: Monitor share status and history
6971
href: how-to-monitor.md
7072
- name: Disaster recovery
7173
href: disaster-recovery.md
@@ -84,6 +86,8 @@
8486
href: /rest/api/datashare
8587
- name: Azure CLI
8688
href: /cli/azure/azure-cli-reference-for-data-share
89+
- name: Monitoring data reference
90+
href: monitor-data-share-reference.md
8791
- name: Resources
8892
items:
8993
- name: Microsoft Q&A question page

articles/data-share/how-to-monitor.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
---
2-
title: How to monitor Azure Data Share
3-
description: Learn how to monitor invitation status, share subscriptions, and snapshot history in Azure Data Share
2+
title: Monitor Azure Data Share status and history
3+
description: Learn how to monitor invitation status, share subscriptions, and snapshot history for Azure Data Share
44
author: sidontha
55
ms.author: sidontha
66
ms.service: data-share
77
ms.topic: how-to
8-
ms.date: 12/19/2023
8+
ms.date: 02/29/2024
99
---
1010

11-
# Monitor Azure Data Share
11+
# Monitor Azure Data Share status and history
1212

13-
This article explains how you can monitor your data shares using Azure Data Share. As a data provider, you're able to monitor various aspects of your data sharing relationships. Details such as whether your data consumers have accepted your invitation to the data share, and whether they have created a share subscription and started to use your data are all available to monitor.
13+
This article explains how you can monitor your Azure Data Share status and history.
1414

15-
As a data consumer, you can monitor the snapshots that have been triggered into your Azure subscription.
15+
- As a data provider, you can monitor various aspects of your data sharing relationships. Details such as whether your data consumers have accepted your invitation to the data share, and whether they have created a share subscription and started to use your data, are all available to monitor.
16+
17+
- As a data consumer, you can monitor the snapshots that have been triggered into your Azure subscription.
18+
19+
You can also see Azure Monitor metrics, collect logs, analyze monitoring data, and create alerts for your Data Share shares. For information about all the monitoring options that are available for Data Share, see [Monitor Azure Data Share](monitor-data-share.md).
1620

1721
## Monitor invitation status
1822

@@ -43,12 +47,8 @@ You can view more details about each snapshot run by selecting the run start dat
4347

4448
Up to 30 days of snapshot history is displayed. If you need to save and see more than 30 days worth of history, you can use diagnostic setting.
4549

46-
## Diagnostic setting
47-
48-
You can configure diagnostic setting to save log data or events. Navigate to Monitoring -> Diagnostic settings and select **Add diagnostic setting**. Select the log data or events that you're interested in, and where you want to store or send them.
49-
50-
![Screenshot shows the Diagnostic settings page in the Azure portal.](./media/diagnostic-settings.png "Diagnostic settings")
51-
5250
## Next steps
5351

54-
Learn more about [Azure Data Share terminology](terminology.md)
52+
- Learn more about [Azure Data Share terminology](terminology.md).
53+
- See [Monitor Data Share](monitor-data-share.md) for more details about monitoring Data Share.
54+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Monitoring data reference for Azure Data Share
3+
description: This article contains important reference material you need when you monitor Azure Data Share.
4+
ms.date: 02/28/2024
5+
ms.custom: horz-monitor
6+
ms.topic: reference
7+
author: sidontha
8+
ms.author: sidontha
9+
ms.service: data-share
10+
---
11+
12+
# Azure Data Share monitoring data reference
13+
14+
[!INCLUDE [horz-monitor-ref-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-intro.md)]
15+
16+
See [Monitor Data Share](monitor-data-share.md) for details on the data you can collect for Azure Data Share and how to use it.
17+
18+
[!INCLUDE [horz-monitor-ref-metrics-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-intro.md)]
19+
20+
### Supported metrics for Microsoft.DataShare/accounts
21+
The following table lists the metrics available for the Microsoft.DataShare/accounts resource type.
22+
[!INCLUDE [horz-monitor-ref-metrics-tableheader](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-tableheader.md)]
23+
[!INCLUDE [Microsoft.DataShare/accounts](~/azure-reference-other-repo/azure-monitor-ref/supported-metrics/includes/microsoft-datashare-accounts-metrics-include.md)]
24+
25+
[!INCLUDE [horz-monitor-ref-metrics-dimensions-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions-intro.md)]
26+
[!INCLUDE [horz-monitor-ref-metrics-dimensions](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions.md)]
27+
28+
- **Sent Shares:** ShareName
29+
- **Received Shares:** ShareSubscriptionName
30+
31+
[!INCLUDE [horz-monitor-ref-resource-logs](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-resource-logs.md)]
32+
33+
### Supported resource logs for Microsoft.DataShare/accounts
34+
[!INCLUDE [Microsoft.DataShare/accounts](~/azure-reference-other-repo/azure-monitor-ref/supported-logs/includes/microsoft-datashare-accounts-logs-include.md)]
35+
36+
[!INCLUDE [horz-monitor-ref-logs-tables](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-logs-tables.md)]
37+
38+
### Data Share
39+
40+
Microsoft.DataShare/accounts
41+
42+
- [AzureActivity](/azure/azure-monitor/reference/tables/AzureActivity#columns)
43+
- [AzureMetrics](/azure/azure-monitor/reference/tables/AzureMetrics#columns)
44+
- [MicrosoftDataShareSentSnapshotLog](/azure/azure-monitor/reference/tables/MicrosoftDataShareSentSnapshotLog#columns)
45+
- [MicrosoftDataShareReceivedSnapshotLog](/azure/azure-monitor/reference/tables/MicrosoftDataShareReceivedSnapshotLog#columns)
46+
- [MicrosoftDataShareShareLog](/azure/azure-monitor/reference/tables/MicrosoftDataShareShareLog#columns)
47+
48+
[!INCLUDE [horz-monitor-ref-activity-log](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-activity-log.md)]
49+
- [Microsoft.DataShare resource provider operations](/azure/role-based-access-control/permissions/storage#microsoftdatashare)
50+
51+
## Related content
52+
53+
- See [Monitor Data Share](monitor-data-share.md) for a description of monitoring Data Share.
54+
- See [Monitor Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for details on monitoring Azure resources.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
title: Monitor Azure Data Share
3+
description: Start here to learn how to monitor Azure Data Share.
4+
ms.date: 03/05/2024
5+
ms.custom: horz-monitor
6+
ms.topic: conceptual
7+
author: sidontha
8+
ms.author: sidontha
9+
ms.service: data-share
10+
---
11+
12+
# Monitor Azure Data Share
13+
14+
[!INCLUDE [horz-monitor-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-intro.md)]
15+
16+
[!INCLUDE [horz-monitor-resource-types](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-resource-types.md)]
17+
For more information about the resource types for Azure Data Share, see [Data Share monitoring data reference](monitor-data-share-reference.md).
18+
19+
[!INCLUDE [horz-monitor-data-storage](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-data-storage.md)]
20+
21+
[!INCLUDE [horz-monitor-platform-metrics](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-platform-metrics.md)]
22+
23+
To view charts for Data Share metrics, select **Metrics** under **Monitoring** in the left navigation of your Data Share page in the Azure portal.
24+
25+
For a full listing and descriptions of the available metrics for Data Share, see [Data Share monitoring data reference](monitor-data-share-reference.md#metrics).
26+
27+
[!INCLUDE [horz-monitor-resource-logs](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-resource-logs.md)]
28+
29+
You can configure diagnostic settings to save log data or events. Select **Diagnostic settings** under **Monitoring** in the left navigation of your Azure portal Data Share page, and then select the appropriate resource log categories to collect.
30+
31+
:::image type="content" source="./media/diagnostic-settings.png" alt-text="Screenshot that shows the Diagnostic settings page in the Azure portal.":::
32+
33+
For more information about the available resource log categories, their associated Log Analytics tables, and the logs schemas for Data Share, see [Data Share monitoring data reference](monitor-data-share-reference.md#resource-logs).
34+
35+
[!INCLUDE [horz-monitor-activity-log](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-activity-log.md)]
36+
37+
## Data Share status and history
38+
39+
To track Data Share invitation status, share subscription status, and snapshot history, select **Sent Shares** under **Data Share** in the left navigation of your Data Share page in the Azure portal. For more information and instructions, see [Monitor Data Share status and history](how-to-monitor.md).
40+
41+
[!INCLUDE [horz-monitor-analyze-data](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-analyze-data.md)]
42+
[!INCLUDE [horz-monitor-external-tools](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-external-tools.md)]
43+
44+
[!INCLUDE [horz-monitor-kusto-queries](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-kusto-queries.md)]
45+
46+
To write queries and access example queries, select **Logs** under **Monitoring** in the left navigation of your Data Share page in the Azure portal, and then select the **Queries** tab. Here are a couple of example queries.
47+
48+
List of sent snapshots sorted by duration over the last seven days:
49+
50+
```kusto
51+
// List sent snapshots by duration
52+
MicrosoftDataShareSentSnapshotLog
53+
| where TimeGenerated > ago(7d)
54+
| where StartTime != "" and EndTime != ""
55+
| project StartTime , EndTime , DurationSeconds =(todatetime(EndTime)-todatetime(StartTime))/1s , ResourceName = split(_ResourceId,"/accounts/",1)
56+
| sort by DurationSeconds desc nulls last
57+
```
58+
59+
Top 10 most frequent errors over the last seven days:
60+
61+
```kusto
62+
// Frequent errors in received snapshots
63+
MicrosoftDataShareReceivedSnapshotLog
64+
| where TimeGenerated > ago(7d)
65+
| where Status == "Failed"
66+
| summarize count() by _ResourceId, DataSetType // Counting failed logs per datasettype
67+
| top 10 by count_ desc nulls last
68+
```
69+
70+
For more example queries, see:
71+
72+
- [Queries for the MicrosoftDataShareReceivedSnapshotLog table](/azure/azure-monitor/reference/queries/microsoftdatasharereceivedsnapshotlog)
73+
- [Queries for the MicrosoftDataShareSentSnapshotLog table](/azure/azure-monitor/reference/queries/microsoftdatasharesentsnapshotlog)
74+
75+
[!INCLUDE [horz-monitor-alerts](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-alerts.md)]
76+
77+
### Data Share alert rules
78+
79+
To create alerts for your Data Share monitoring data, select **Alerts** under **Monitoring** in the left navigation of your Data Share page in the Azure portal, and then select **Create alert rule**. You can select a signal and configure all the details to trigger and route the alert.
80+
81+
The following table lists some alert rules for Data Share. This is just a suggested list. You can set alerts for any metric, log entry, or activity log entry that's listed in the [Data Share monitoring data reference](monitor-data-share-reference.md).
82+
83+
| Alert type | Condition | Description |
84+
|:---|:---|:---|
85+
|Metrics |Received Share Failed Snapshots |Whenever the count Received Share Failed Snapshots is greater than 0|
86+
|Activity log |Delete Data Share Account (Data Share Account) |Whenever the Activity Log has an event with Category='Administrative', Signal name='Delete Data Share Account (Data Share Account)'
87+
88+
[!INCLUDE [horz-monitor-advisor-recommendations](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-advisor-recommendations.md)]
89+
90+
## Related content
91+
92+
- See [Data Share monitoring data reference](monitor-data-share-reference.md) for a reference of the metrics, logs, and other important values created for Data Share.
93+
- See [Monitoring Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for general details on monitoring Azure resources.

0 commit comments

Comments
 (0)