Azure Monitor のメトリック アラートでサポートされるリソース
Azure Monitor が新しいタイプのメトリック アラートをサポートするようになりました。このタイプには、古いクラシック メトリック アラートと比較して多くのメリットがあります。 メトリックはさまざまな Azure サービスで利用できます。 新しいアラートがサポートするリソースの種類のサブセットは拡大しています。 この記事では、このサブセットを一覧で示します。
新しいメトリック アラートは、メトリックとして抽出された、Log Analytics ワークスペースに格納された一般的なログ データに対しても使用できます。 詳しくは、ログのメトリック アラートに関するページをご覧ください。
ポータル、PowerShell、CLI、REST のサポート
現在、新しいメトリック アラートを作成できるのは、Azure portal、REST API、または Azure Resource Manager テンプレートだけです。 PowerShell と Azure CLI バージョン 2.0 以降を使用した新しいアラートの構成は、近日中にサポートされる予定です。
サポートされるメトリックとディメンション
新しいメトリック アラートでは、ディメンションを使用するメトリックのアラートがサポートされています。 ディメンションを使用すると、メトリックを適切なレベルにフィルター処理できます。 サポートされるすべてのメトリックと適用可能なディメンションは、Azure Monitor - メトリックス エクスプローラーで調べて表示できます。
新しいアラートでサポートされている Azure Monitor のメトリック ソースの完全な一覧を次に示します。
リソースの種類 | サポートされるディメンション | マルチリソース アラート | 使用可能なメトリック |
---|---|---|---|
Microsoft.Aadiam/azureADMetrics | はい | いいえ | Azure Active Directory (プライベート プレビューのメトリック) |
Microsoft.ApiManagement/service | はい | いいえ | Azure API Management |
Microsoft.App/containerApps | はい | いいえ | Azure Container Apps |
Microsoft.AppConfiguration/configurationStores | [はい] | いいえ | Azure App Configuration |
Microsoft.AppPlatform/spring | はい | いいえ | Azure Spring Cloud |
Microsoft.Automation/automationAccounts | はい | いいえ | Azure Automation アカウント |
Microsoft.AVS/privateClouds | いいえ | いいえ | Azure VMware Solution |
Microsoft.Batch/batchAccounts | [はい] | いいえ | Azure Batch アカウント |
Microsoft.Bing/accounts | はい | いいえ | Bing アカウント |
Microsoft.BotService/botServices | はい | いいえ | Azure Bot Service |
Microsoft.Cache/redis | はい | はい | Azure Cache for Redis |
Microsoft.Cache/redisEnterprise | はい | いいえ | Azure Cache for Redis Enterprise |
microsoft.Cdn/profiles | はい | いいえ | Azure Content Delivery Network のプロファイル数 |
Microsoft.ClassicCompute/domainNames/slots/roles | いいえ | いいえ | Azure Cloud Services (クラシック) |
Microsoft.ClassicCompute/virtualMachines | いいえ | いいえ | Azure Virtual Machines (クラシック) |
Microsoft.ClassicStorage/storageAccounts | [はい] | いいえ | Azure ストレージ アカウント (クラシック) |
Microsoft.ClassicStorage/storageAccounts/blobServices | [はい] | いいえ | Azure Blob Storage アカウント (クラシック) |
Microsoft.ClassicStorage/storageAccounts/fileServices | [はい] | いいえ | Azure Files ストレージ アカウント (クラシック) |
Microsoft.ClassicStorage/storageAccounts/queueServices | [はい] | いいえ | Azure Queue Storage アカウント (クラシック) |
Microsoft.ClassicStorage/storageAccounts/tableServices | [はい] | いいえ | Azure Table Storage アカウント (クラシック) |
Microsoft.CognitiveServices/accounts | はい | いいえ | Azure Cognitive Services |
Microsoft.Compute/cloudServices | はい | いいえ | Azure Cloud Services |
Microsoft.Compute/cloudServices/roles | はい | いいえ | Azure Cloud Services ロール |
Microsoft.Compute/virtualMachines | はい | 可1 | Azure Virtual Machines |
Microsoft.Compute/virtualMachineScaleSets | はい | いいえ | Azure Virtual Machine Scale Sets |
Microsoft.ConnectedVehicle/platformAccounts | はい | いいえ | 接続された車両プラットフォーのアカウント |
Microsoft.ContainerInstance/containerGroups | はい | いいえ | コンテナー グループ |
Microsoft.ContainerRegistry/registries | いいえ | いいえ | Azure Container Registry |
Microsoft.ContainerService/managedClusters | はい | いいえ | マネージド クラスター |
Microsoft.DataBoxEdge/dataBoxEdgeDevices | はい | はい | Azure Data Box |
Microsoft.DataFactory/datafactories | はい | いいえ | Azure Data Factory V1 |
Microsoft.DataFactory/factories | はい | いいえ | Azure Data Factory V2 |
Microsoft.DataProtection/backupVaults | はい | はい | Azure Backup コンテナー |
Microsoft.DataShare/accounts | [はい] | いいえ | Azure Data Share |
Microsoft.DBforMariaDB/servers | いいえ | いいえ | Azure Database for MariaDB |
Microsoft.DBforMySQL/servers | いいえ | いいえ | Azure Database for MySQL |
Microsoft.DBforPostgreSQL/flexibleServers | はい | はい | Azure Database for PostgreSQL (フレキシブル サーバー) |
Microsoft.DBforPostgreSQL/serverGroupsv2 | はい | いいえ | Azure Database for PostgreSQL (ハイパースケール) |
Microsoft.DBforPostgreSQL/servers | いいえ | No | Azure Database for PostgreSQL |
Microsoft.DBforPostgreSQL/serversv2 | いいえ | いいえ | Azure Database for PostgreSQL V2 |
Microsoft.Devices/IotHubs | はい | いいえ | Azure IoT Hub |
Microsoft.Devices/provisioningServices | はい | いいえ | Device Provisioning Service |
Microsoft.DigitalTwins/digitalTwinsInstances | はい | いいえ | Azure Digital Twins |
Microsoft.DocumentDB/databaseAccounts | はい | いいえ | Azure Cosmos DB |
Microsoft.EventGrid/domains | はい | いいえ | Azure Event Grid ドメイン |
Microsoft.EventGrid/systemTopics | はい | いいえ | Azure Event Grid システム トピック |
Microsoft.EventGrid/topics | はい | いいえ | Azure Event Grid トピック |
Microsoft.EventHub/clusters | はい | いいえ | Azure Event Hubs クラスター |
Microsoft.EventHub/namespaces | はい | いいえ | Azure Event Hubs |
Microsoft.HDInsight/clusters | はい | いいえ | Azure HDInsight クラスター |
Microsoft.Insights/Components | はい | いいえ | Application Insights |
Microsoft.KeyVault/vaults | はい | はい | Azure Key Vault |
Microsoft.Kusto/Clusters | はい | いいえ | データ エクスプローラー クラスター |
Microsoft.Logic/integrationServiceEnvironments | はい | いいえ | Azure Integration Services 環境 |
Microsoft.Logic/workflows | いいえ | いいえ | Azure Logic Apps |
Microsoft.MachineLearningServices/workspaces | はい | いいえ | Azure Machine Learning |
Microsoft.MachineLearningServices/workspaces/onlineEndpoints | はい | いいえ | Azure Machine Learning エンドポイント |
Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments | はい | いいえ | Azure Machine Learning エンドポイントのデプロイ |
Microsoft.Maps/accounts | はい | いいえ | Azure Maps アカウント |
Microsoft.Media/mediaservices | いいえ | いいえ | Azure Media Services |
Microsoft.Media/mediaservices/streamingEndpoints | はい | いいえ | Azure Media Services ストリーミング エンドポイント |
Microsoft.NetApp/netAppAccounts/capacityPools | はい | はい | Azure NetApp Files 容量プール |
Microsoft.NetApp/netAppAccounts/capacityPools/volumes | はい | はい | Azure NetApp Files ボリューム |
Microsoft.Network/applicationGateways | はい | いいえ | Azure Application Gateway |
Microsoft.Network/azureFirewalls | はい | いいえ | Azure Firewall |
microsoft.Network/networkWatchers/connectionMonitors | はい | いいえ | 接続モニター |
Microsoft.Network/dnsZones | いいえ | いいえ | Azure DNS ゾーン |
Microsoft.Network/expressRouteCircuits | ○ | いいえ | Azure ExpressRoute 回線 |
Microsoft.Network/expressRouteGateways | はい | いいえ | Azure ExpressRoute ゲートウェイ |
Microsoft.Network/expressRoutePorts | ○ | いいえ | Azure ExpressRoute Direct |
Microsoft.Network/loadBalancers (Standard SKU に対してのみ) | はい | いいえ | Azure Load Balancer |
Microsoft.Network/natGateways | いいえ | いいえ | NAT Gateway |
Microsoft.Network/privateEndpoints | いいえ | いいえ | プライベート エンドポイント |
Microsoft.Network/privateLinkServices | いいえ | いいえ | Azure Private Link サービス |
Microsoft.Network/publicipaddresses | いいえ | いいえ | パブリック IP アドレス |
Microsoft.Network/trafficManagerProfiles | はい | いいえ | Azure Traffic Manager プロファイル |
Microsoft.OperationalInsights/workspaces | はい | いいえ | Log Analytics ワークスペース |
Microsoft.Peering/peerings | はい | いいえ | Azure Peering Service |
Microsoft.Peering/peeringServices | はい | いいえ | Azure Peering Service |
Microsoft.PowerBIDedicated/capacities | いいえ | いいえ | Power BI 専用容量 |
Microsoft.Purview/accounts | はい | いいえ | Azure Purview アカウント |
Microsoft.RecoveryServices/vaults | はい | はい | Recovery Services コンテナー |
Microsoft.Relay/namespaces | はい | いいえ | リレー |
Microsoft.Search/searchServices | いいえ | いいえ | 検索サービス |
Microsoft.ServiceBus/namespaces | はい | いいえ | Azure Service Bus |
Microsoft.SignalRService/WebPubSub | はい | いいえ | Azure Web PubSub サービス |
Microsoft.Sql/managedInstances | × | No | Azure SQL Managed Instance |
Microsoft.Sql/servers/databases | いいえ | ○ | Azure SQL Database |
Microsoft.Sql/servers/elasticPools | いいえ | はい | Azure SQL Database エラスティック プール |
Microsoft.Storage/storageAccounts | はい | いいえ | Azure Storage アカウント |
Microsoft.Storage/storageAccounts/blobServices | はい | いいえ | Azure Blob Storage アカウント |
Microsoft.Storage/storageAccounts/fileServices | はい | いいえ | Azure Files ストレージ アカウント |
Microsoft.Storage/storageAccounts/queueServices | はい | いいえ | Azure Queue Storage アカウント |
Microsoft.Storage/storageAccounts/tableServices | はい | いいえ | Azure Table Storage アカウント |
Microsoft.StorageCache/caches | はい | いいえ | Azure HPC Cache |
Microsoft.StorageSync/storageSyncServices | はい | いいえ | ストレージ同期サービス |
Microsoft.StreamAnalytics/streamingjobs | はい | いいえ | Azure Stream Analytics |
Microsoft.Synapse ワークスペース | はい | いいえ | Azure Synapse Analytics |
Microsoft.Synapse/workspaces/bigDataPools | はい | いいえ | Azure Synapse Analytics Apache Spark プール |
Microsoft.Synapse/workspaces/sqlPools | はい | いいえ | Azure Synapse Analytics SQL プール |
Microsoft.VMWareCloudSimple/virtualMachines | はい | いいえ | CloudSimple 仮想マシン |
Microsoft.Web/containerApps | はい | いいえ | Azure Container Apps |
Microsoft.Web/hostingEnvironments/multiRolePools | はい | いいえ | App Service Environment マルチロール プール |
Microsoft.Web/hostingEnvironments/workerPools | はい | いいえ | Azure App Service Environment ワーカー プール |
Microsoft.Web/serverfarms | はい | いいえ | Azure App Service プラン |
Microsoft.Web/sites | はい | いいえ | Azure App Service と Azure Functions |
Microsoft.Web/sites/slots | はい | いいえ | Azure App Service スロット |
1 受信ネットワーク合計、送信ネットワーク合計、受信フロー数、送信フロー数、受信フローの最大作成速度、送信フローの最大作成速度など、仮想マシンのネットワーク メトリックに対してはサポートされていません。 また、カスタム メトリックではサポートされません。
ペイロード スキーマ
Note
共通アラート スキーマを使用することもできます。このスキーマの利点は、Azure Monitor のすべてのアラート サービスの垣根を越えて、拡張可能かつ一元化された単一のアラート ペイロードによって Webhook の統合を実現できることです。 共通アラート スキーマの定義については、こちらを参照してください。
適切に構成されたアクション グループが使用されている場合、POST 操作には、すべての新しいメトリック アラートに対する以下の JSON ペイロードとスキーマが含まれます。
{
"schemaId": "AzureMonitorMetricAlert",
"data": {
"version": "2.0",
"status": "Activated",
"context": {
"timestamp": "2018-02-28T10:44:10.1714014Z",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Contoso/providers/microsoft.insights/metricAlerts/StorageCheck",
"name": "StorageCheck",
"description": "",
"conditionType": "SingleResourceMultipleMetricCriteria",
"severity":"3",
"condition": {
"windowSize": "PT5M",
"allOf": [
{
"metricName": "Transactions",
"metricNamespace":"microsoft.storage/storageAccounts",
"dimensions": [
{
"name": "AccountResourceId",
"value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Contoso/providers/Microsoft.Storage/storageAccounts/diag500"
},
{
"name": "GeoType",
"value": "Primary"
}
],
"operator": "GreaterThan",
"threshold": "0",
"timeAggregation": "PT5M",
"metricValue": 1
}
]
},
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "Contoso",
"resourceName": "diag500",
"resourceType": "Microsoft.Storage/storageAccounts",
"resourceId": "/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/Contoso/providers/Microsoft.Storage/storageAccounts/diag500",
"portalLink": "https://portal.azure.com/#resource//subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Contoso/providers/Microsoft.Storage/storageAccounts/diag500"
},
"properties": {
"key1": "value1",
"key2": "value2"
}
}
}
次のステップ
- 新しいアラート エクスペリエンスの詳細について学習します。
- Azure でのログ アラートについて学習します。
- Azure のアラートについて確認します。