|
| 1 | +--- |
| 2 | +title: Monitor Azure Data Share |
| 3 | +description: Start here to learn how to monitor Azure Data Share. |
| 4 | +ms.date: mm/dd/yyyy |
| 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 | +Select **Metrics** under **Monitoring** in the left navigation of your Data Share page in the Azure portal to access charts for the following Data Share metrics: |
| 24 | + |
| 25 | +- Received Shares |
| 26 | +- Received Share Failed Snapshots |
| 27 | +- Received Share Succeeded Snapshots |
| 28 | +- Sent Shares |
| 29 | +- Sent Share Failed Snapshots |
| 30 | +- Sent Share Succeeded Snapshots |
| 31 | + |
| 32 | +For a list of available metrics for Data Share, see [Data Share monitoring data reference](monitor-data-share-reference.md#metrics). |
| 33 | + |
| 34 | +[!INCLUDE [horz-monitor-resource-logs](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-resource-logs.md)] |
| 35 | + |
| 36 | +Select **Diagnostic settings** under **Monitoring** in the left navigation of your Data Share page in the Azure portal to configure collection of the following Data Share log data: |
| 37 | + |
| 38 | +- Shares |
| 39 | +- Share Subscriptions |
| 40 | +- Sent Share Snapshots |
| 41 | +- Received Share Snapshots |
| 42 | + |
| 43 | +For 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). |
| 44 | + |
| 45 | +[!INCLUDE [horz-monitor-activity-log](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-activity-log.md)] |
| 46 | + |
| 47 | +## Sent share status and history |
| 48 | + |
| 49 | +To monitor 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 insructions, see [How to monitor Azure Data Share](how-to-monitor.md). |
| 50 | + |
| 51 | +[!INCLUDE [horz-monitor-analyze-data](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-analyze-data.md)] |
| 52 | +[!INCLUDE [horz-monitor-external-tools](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-external-tools.md)] |
| 53 | + |
| 54 | +[!INCLUDE [horz-monitor-kusto-queries](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-kusto-queries.md)] |
| 55 | + |
| 56 | +For 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 few example queries. |
| 57 | + |
| 58 | +A list of the snapshots sorted by duration time over the last seven days: |
| 59 | + |
| 60 | +```kusto |
| 61 | +// List sent snapshots by duration |
| 62 | +MicrosoftDataShareSentSnapshotLog |
| 63 | +| where TimeGenerated > ago(7d) |
| 64 | +| where StartTime != "" and EndTime != "" |
| 65 | +| project StartTime , EndTime , DurationSeconds =(todatetime(EndTime)-todatetime(StartTime))/1s , ResourceName = split(_ResourceId,"/accounts/",1) |
| 66 | +| sort by DurationSeconds desc nulls last |
| 67 | +``` |
| 68 | + |
| 69 | +Top 10 most frequent errors over the last seven days: |
| 70 | + |
| 71 | +```kusto |
| 72 | +// Frequent errors in received snapshots |
| 73 | +MicrosoftDataShareReceivedSnapshotLog |
| 74 | +| where TimeGenerated > ago(7d) |
| 75 | +| where Status == "Failed" |
| 76 | +| summarize count() by _ResourceId, DataSetType // Counting failed logs per datasettype |
| 77 | +| top 10 by count_ desc nulls last |
| 78 | +``` |
| 79 | + |
| 80 | +Total count of failed snapshots over the last seven days: |
| 81 | + |
| 82 | +```kusto |
| 83 | +// Count failed sent snapshots |
| 84 | +MicrosoftDataShareSentSnapshotLog |
| 85 | +| where TimeGenerated > ago(7d) |
| 86 | +| where Status == "Failed" |
| 87 | +| summarize count() by _ResourceId |
| 88 | +``` |
| 89 | + |
| 90 | +[!INCLUDE [horz-monitor-alerts](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-alerts.md)] |
| 91 | + |
| 92 | +### Data Share alert rules |
| 93 | + |
| 94 | +The following table lists common and recommended alert rules for Data Share. This is just a recommended 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). |
| 95 | + |
| 96 | +| Alert type | Condition | Description | |
| 97 | +|:---|:---|:---| |
| 98 | +|Metrics |Received Share Failed Snapshots |Whenever the count Received Share Failed Snapshots is greater than 0| |
| 99 | +|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)' |
| 100 | + |
| 101 | +[!INCLUDE [horz-monitor-advisor-recommendations](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-advisor-recommendations.md)] |
| 102 | + |
| 103 | +## Related content |
| 104 | + |
| 105 | +- 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. |
| 106 | +- See [Monitoring Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for general details on monitoring Azure resources. |
0 commit comments