Microsoft Azure App Service

概要

Azure App Service は、Web、モバイル、API、およびビジネスロジックアプリケーションを実行し、それらのアプリケーションが必要とするリソースを自動的に管理する、PaaS (サービスとしてのプラットフォーム) です。

Azure App Service からメトリクスを取得すると、以下のことができます。

  • アプリのパフォーマンスを視覚化できます。
  • Azure アプリのパフォーマンスを他のアプリと関連付けることができます。

Azure App Service ビュー

Azure App Service のプリセットダッシュボードに加え、Azure App Service 専用のビューを利用することも可能です。

Azure App Service ビューを使用すると、次のことができます。

  • レイテンシーやエラーの多いアプリをすばやく特定

  • Web App、Function App、App Service Plan の使用量を追跡

  • アクティブなインスタンスの数を視覚化し、Datadog にトレースまたはログを送信している実行中のアプリを確認することで、App Service Plan のコストに関する洞察を取得

  • どの App Service Plan でどのアプリが実行されているかをマッピングして、コストやパフォーマンスに影響を与える可能性のあるアプリを特定

Azure App Service で実行するアプリケーションに対して Datadog APM およびカスタムメトリクスを有効にするには、Datadog Azure App Service 拡張機能のドキュメントを参照してください。

セットアップ

インストール

Microsoft Azure インテグレーションをまだセットアップしていない場合は、最初にセットアップします。これ以外に必要なインストール手順はありません。

ログおよびトレース ID 挿入など、その他のモニタリングオプションについては、Azure App Service 拡張機能をご覧ください。

収集データ

メトリクス

azure.app_services.cpu_time
(gauge)
The amount of CPU consumed by the app, in seconds. For more information about this metric. Please see:https://aka.ms/website-monitor-cpu-time-vs-cpu-percentage(CPU time vs CPU percentage). For WebApps only.
Shown as second
azure.app_services.cpu_time.max
(gauge)
The maximum amount of cpu time of the app (Max Aggregated)
Shown as second
azure.app_services.bytes_received
(count)
The amount of incoming bandwidth consumed by the app, in MiB. For WebApps and FunctionApps.
Shown as byte
azure.app_services.bytes_sent
(count)
The amount of outgoing bandwidth consumed by the app, in MiB. For WebApps and FunctionApps.
Shown as byte
azure.app_services.memory_working_set
(gauge)
The average memory used by the app
Shown as byte
azure.app_services.memory_working_set.max
(gauge)
The maximum memory used by the app (Max Aggregated)
Shown as byte
azure.app_services.response_time
(gauge)
The time taken for the app to serve requests
Shown as second
azure.app_services.response_time.max
(gauge)
The maximum time taken for the app to serve requests (Max Aggregated)
Shown as second
azure.app_services.count
(gauge)
The count of Azure App Services resources
azure.app_services.total_app_domains
(gauge)
The current number of App Domains loaded in this application
azure.app_services.total_app_domains_unloaded
(gauge)
The total number of App Domains unloaded since the start of the application
azure.app_services.requests
(count)
The total number of requests regardless of their resulting HTTP status code. For WebApps and FunctionApps.
azure.app_services.requests_in_application_queue
(gauge)
The number of requests in the application request queue. For WebApps and FunctionApps.
azure.app_services.thread_count
(gauge)
The number of threads currently active in the app process. For WebApps and FunctionApps.
azure.app_services.webjob_count
(gauge)
The current number of WebJobs configured per WebApp.
azure.app_services.handle_count
(gauge)
The total number of handles currently open by the app process. For WebApps and FunctionApps.
azure.web_sites_slots.app_connections
(count)
The number of bound sockets existing in the sandbox (w3wp.exe and its child processes). A bound socket is created by calling bind()/connect() APIs and remains until said socket is closed with CloseHandle()/closesocket().
azure.web_sites_slots.average_memory_working_set
(gauge)
The average amount of memory used by the app, in megabytes (MiB).
Shown as byte
azure.web_sites_slots.average_response_time
(count)
The average time taken for the app to serve requests, in seconds.
Shown as second
azure.web_sites_slots.bytes_received
(gauge)
Data In
Shown as byte
azure.web_sites_slots.bytes_sent
(gauge)
Data Out
Shown as byte
azure.web_sites_slots.cpu_time
(gauge)
The amount of CPU consumed by the app, in seconds. For more information about this metric. Please see:https://aka.ms/website-monitor-cpu-time-vs-cpu-percentage(CPU time vs CPU percentage).
Shown as second
azure.web_sites_slots.current_assemblies
(gauge)
The current number of Assemblies loaded across all AppDomains in this application.
azure.web_sites_slots.file_system_usage
(gauge)
Percentage of filesystem quota consumed by the app.
Shown as byte
azure.web_sites_slots.function_execution_count
(count)
Function Execution Count
azure.web_sites_slots.function_execution_units
(count)
Function Execution Units
azure.web_sites_slots.gen0_collections
(count)
The number of times the generation 0 objects are garbage collected since the start of the app process. Higher generation GCs include all lower generation GCs.
azure.web_sites_slots.gen1_collections
(count)
The number of times the generation 1 objects are garbage collected since the start of the app process. Higher generation GCs include all lower generation GCs.
azure.web_sites_slots.gen2_collections
(count)
The number of times the generation 2 objects are garbage collected since the start of the app process.
azure.web_sites_slots.handles
(count)
The total number of handles currently open by the app process.
azure.web_sites_slots.health_check_status
(gauge)
Health check status
azure.web_sites_slots.http101
(count)
The count of requests resulting in an HTTP status code 101.
azure.web_sites_slots.http2xx
(count)
The count of requests resulting in an HTTP status code = 200 but < 300.
azure.web_sites_slots.http3xx
(count)
The count of requests resulting in an HTTP status code = 300 but < 400.
azure.web_sites_slots.http401
(count)
The count of requests resulting in HTTP 401 status code.
azure.web_sites_slots.http403
(count)
The count of requests resulting in HTTP 403 status code.
azure.web_sites_slots.http404
(count)
The count of requests resulting in HTTP 404 status code.
azure.web_sites_slots.http406
(count)
The count of requests resulting in HTTP 406 status code.
azure.web_sites_slots.http4xx
(count)
The count of requests resulting in an HTTP status code = 400 but < 500.
azure.web_sites_slots.http5xx
(count)
The count of requests resulting in an HTTP status code = 500 but < 600.
azure.web_sites_slots.http_response_time
(gauge)
The time taken for the app to serve requests, in seconds.
Shown as second
azure.web_sites_slots.io_other_bytes_per_second
(count)
The rate at which the app process is issuing bytes to I/O operations that don’t involve data, such as control operations.
Shown as byte
azure.web_sites_slots.io_other_operations_per_second
(count)
The rate at which the app process is issuing I/O operations that aren’t read or write operations.
Shown as byte
azure.web_sites_slots.io_read_bytes_per_second
(count)
The rate at which the app process is reading bytes from I/O operations.
Shown as byte
azure.web_sites_slots.io_read_operations_per_second
(count)
The rate at which the app process is issuing read I/O operations.
Shown as byte
azure.web_sites_slots.io_write_bytes_per_second
(count)
The rate at which the app process is writing bytes to I/O operations.
Shown as byte
azure.web_sites_slots.io_write_operations_per_second
(count)
The rate at which the app process is issuing write I/O operations.
Shown as byte
azure.web_sites_slots.memory_working_set
(gauge)
The current amount of memory used by the app, in MiB.
Shown as byte
azure.web_sites_slots.private_bytes
(gauge)
Private Bytes is the current size, in bytes, of memory that the app process has allocated that can’t be shared with other processes.
Shown as byte
azure.web_sites_slots.requests
(count)
The total number of requests regardless of their resulting HTTP status code.
azure.web_sites_slots.requests_in_application_queue
(gauge)
The number of requests in the application request queue.
azure.web_sites_slots.scm_cpu_time
(count)
ScmCpuTime
Shown as second
azure.web_sites_slots.scm_private_bytes
(gauge)
ScmPrivateBytes
Shown as byte
azure.web_sites_slots.threads
(count)
The number of threads currently active in the app process.
azure.web_sites_slots.total_app_domains
(gauge)
The current number of AppDomains loaded in this application.
azure.web_sites_slots.total_app_domains_unloaded
(gauge)
The total number of AppDomains unloaded since the start of the application.
azure.web_sites_slots.count
(gauge)
The count of all app deployment slots resources
azure.app_services.connections
(gauge)
Number of bound sockets existing in the sandbox (w3wp.exe and its child processes). A bound socket is created by calling bind()/connect() apis and remains until said socket is closed with closehandle()/closesocket(). For webapps and functionapps.
azure.app_services.average_memory_working_set
(gauge)
Average amount of memory used by the app, in megabytes (mib). For webapps and functionapps.
Shown as byte
azure.app_services.average_response_time
(gauge)
Average time taken for the app to serve requests, in seconds. For webapps and functionapps.
Shown as second
azure.app_services.current_assemblies
(gauge)
Current number of assemblies loaded across all appdomains in this application. For webapps and functionapps.
azure.app_services.file_system_usage
(gauge)
Percentage of filesystem quota consumed by the app. For webapps and functionapps.
Shown as byte
azure.app_services.function_execution_count
(count)
Function execution count. For functionapps only.
azure.app_services.function_execution_units
(count)
Function execution units. For functionapps only.
azure.app_services.gen_0_garbage_collections
(count)
Number of times the generation 0 objects are garbage collected since the start of the app process. Higher generation gcs include all lower generation gcs. For webapps and functionapps.
azure.app_services.gen_1_garbage_collections
(count)
Number of times the generation 1 objects are garbage collected since the start of the app process. Higher generation gcs include all lower generation gcs. For webapps and functionapps.
azure.app_services.gen_2_garbage_collections
(count)
Number of times the generation 2 objects are garbage collected since the start of the app process. For webapps and functionapps.
azure.app_services.health_check_status
(gauge)
Health check status. For webapps and functionapps.
azure.app_services.http101
(count)
Count of requests resulting in an HTTP status code 101. For webapps and functionapps.
azure.app_services.http2xx
(count)
Count of requests resulting in an HTTP status code greater than or equal to 200 but less than 300. For webapps and functionapps.
azure.app_services.http3xx
(count)
Count of requests resulting in an HTTP status code greater than or equal to 300 but less than 400. For webapps and functionapps.
azure.app_services.http401
(count)
Count of requests resulting in HTTP 401 status code. For webapps and functionapps.
azure.app_services.http403
(count)
Count of requests resulting in HTTP 403 status code. For webapps and functionapps.
azure.app_services.http404
(count)
Count of requests resulting in HTTP 404 status code. For webapps and functionapps.
azure.app_services.http406
(count)
Count of requests resulting in HTTP 406 status code. For webapps and functionapps.
azure.app_services.http4xx
(count)
Count of requests resulting in an HTTP status code greater than or equal to 400 but less than 500. For webapps and functionapps.
azure.app_services.http5xx
(count)
Count of requests resulting in an HTTP status code greater than or equal to 500 but less than 600. For webapps and functionapps.
azure.app_services.automatic_scaling_instance_count
(gauge)
Number of instances on which this app is running.
azure.app_services.io_other_bytes_per_second
(count)
Rate at which the app process is issuing bytes to I/O operations that don’t involve data, such as control operations. For webapps and functionapps.
Shown as byte
azure.app_services.io_other_operations_per_second
(count)
Rate at which the app process is issuing I/O operations that aren’t read or write operations. For webapps and functionapps.
Shown as byte
azure.app_services.io_read_bytes_per_second
(count)
Rate at which the app process is reading bytes from I/O operations. For webapps and functionapps.
Shown as byte
azure.app_services.io_read_operations_per_second
(count)
Rate at which the app process is issuing read I/O operations. For webapps and functionapps.
Shown as byte
azure.app_services.io_write_bytes_per_second
(count)
Rate at which the app process is writing bytes to I/O operations. For webapps and functionapps.
Shown as byte
azure.app_services.io_write_operations_per_second
(count)
Rate at which the app process is issuing write I/O operations. For webapps and functionapps.
Shown as byte
azure.app_services.private_bytes
(gauge)
Private bytes is the current size, in bytes, of memory that the app process has allocated that can’t be shared with other processes. For webapps and functionapps.
Shown as byte
azure.app_services.workflow_action_completed_count
(count)
Workflow action completed count. For logicapps only.
azure.app_services.workflow_actions_failure_rate
(count)
Workflow actions failure rate. For logicapps only.
Shown as percent
azure.app_services.logic_app_job_pull_rate_per_second
(count)
Logic job pull rate per second. For logicapps only.
azure.app_services.workflow_job_execution_delay
(gauge)
Workflow job execution delay. For logicapps only.
Shown as second
azure.app_services.workflow_job_execution_duration
(gauge)
Workflow job execution duration. For logicapps only.
Shown as second
azure.app_services.workflow_runs_completed_count
(count)
Workflow runs completed count. For logicapps only.
azure.app_services.workflow_runs_dispatched_count
(count)
Workflow runs dispatched count. For logicapps only.
azure.app_services.workflow_runs_failure_rate
(count)
Workflow runs failure rate. For logicapps only.
Shown as percent
azure.app_services.workflow_runs_started_count
(count)
Workflow runs started count. For logicapps only.
azure.app_services.workflow_triggers_completed_count
(count)
Workflow triggers completed count. For logicapps only.
azure.app_services.workflow_triggers_failure_rate
(count)
Workflow triggers failure rate. For logicapps only.
Shown as percent

イベント

Azure App Service インテグレーションには、イベントは含まれません。

サービスチェック

Azure App Service インテグレーションには、サービスのチェック機能は含まれません。

トラブルシューティング

ご不明な点は、Datadog のサポートチームまでお問合せください。