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