キャッシュヒット率、成功率、その他のメトリクスを表示する Fastly ダッシュボード

概要

Fastly を Datadog に接続して、Fastly のキーメトリクス (キャッシュカバレッジ、ヘッダーサイズなど) を Datadog の他のメトリクスと関連付けて表示できます。

このインテグレーションには、即座に使用可能なモニターとダッシュボードが含まれており、それによってメトリクスを総合的に表示し、Fastly メトリクスと関連ログとの間で比較し、メトリクスがユーザー定義のしきい値を超えたり異常な振る舞いを示したりした際に通知するモニターを作成することが可能です。

セットアップ

インストール

必要なインストール手順はありません。

構成

メトリクスの収集

Fastly のトークン管理ページで読み取り専用アクセス API トークンを作成し、ダッシュボードからサービス ID を取得して、それらを Fastly インテグレーションタイルに入力します。

ServiceID は英数字のコードです。例: 5VqE6MOOy1QFJbgmCK41pYFastly API ドキュメントからの例)。

1 つのアカウントで複数のサービス ID を使用している場合は、各行に API トークンを入力します。

アカウント名はアカウントの整理に使用されるものであり、データ取り込みプロセスには使用されません。

ログ収集

ログ収集は、このサイトではサポートされていません。

Fastly ログを Datadog に転送するように Datadog エンドポイントを構成します。Datadog または Datadog (via Syslog) エンドポイントを選択できます。Syslog 経由でログをより確実に配信するには、Datadog エンドポイントをお勧めします。

ログエンドポイントの選択
  1. Fastly Web インターフェイスにログインし、Configure リンクをクリックします。
  2. Service メニューから、該当するサービスを選択します。
  3. Configuration ボタンをクリックし、次に Clone active を選択します。Domains ページが表示されます。
  4. Logging リンクをクリックします。ログエンドポイントページが表示されます。Datadog または Datadog (with Syslog) オプションの下の Create Endpoint をクリックします。
Datadog エンドポイントを構成する (推奨)
  1. エンドポイントに名前を付けます (例: Datadog)。
  2. ログ形式を構成します。デフォルトで、推奨されるDatadog-Fastly ログ形式がすでに用意されており、カスタマイズできます。
  3. Datadog アカウントのリージョンと一致するように、リージョンを選択します:
  4. Datadog API キーを追加します。
  5. 下部にある Create をクリックします。
  6. 右上の Activate をクリックして、新しいコンフィギュレーションをアクティブ化します。数分後、ログがアカウントに流れ始めます。
Syslog エンドポイントの構成
  1. エンドポイントに名前を付けます (例: Datadog)。

  2. ログ形式を構成して、推奨されるDatadog-Fastly ログ形式の先頭にDatadog API キーを含めます。例については、Fastly のドキュメントの JSON ログ形式の使用を参照してください。

    <DATADOG_API_KEY> <DATADOG_FASTLY_LOG_FORMAT>
    

    注: Datadog-Fastly ログ形式の先頭に Datadog API キーがないと、ログが Datadog に表示されません。詳しくは、ログを取るのに便利な変数をご覧ください。

  3. Syslog Address に設定します

  4. Port に設定します

  5. TLSyes に設定します。

  6. TLS Hostname に設定します

  7. Advanced options セクションで、log line format として Blank を選択します。

  8. 最後に、エンドポイントを保存し、サービスをデプロイします。Datadog のログエクスプローラー でログを確認できます。

収集データ

メトリクス

fastly.attack_synth
(gauge)
fastly.bandwidth
(gauge)
Bandwidth sent.
Shown as byte
fastly.body_size
(gauge)
Request body bandwidth sent.
Shown as byte
fastly.errors
(gauge)
Number of Errors.
Shown as request
fastly.header_size
(gauge)
Request header bandwidth sent.
Shown as byte
fastly.hit_ratio
(gauge)
Ratio of cache hits to cache misses.
Shown as percent
fastly.hits
(gauge)
Number of cache hits.
Shown as request
fastly.hits_time
(gauge)
Amount of time spent processing cache hits.
Shown as second
fastly.miss
(gauge)
Number of cache misses.
Shown as request
fastly.miss_time
(gauge)
Amount of time spent processing cache misses.
Shown as second
fastly.pass
(gauge)
Number of requests passed through the CDN without being cached.
Shown as request
fastly.pipe
(gauge)
Number of pipe operations performed.
Shown as operation
fastly.requests
(gauge)
Number of Requests Processed.
Shown as request
fastly.status_1xx
(gauge)
Number of responses sent with an Informational status code.
Shown as response
fastly.status_200
(gauge)
Number of responses sent with status code 200 (Success).
Shown as response
fastly.status_204
(gauge)
Number of responses sent with status code 204 (No Content).
Shown as response
fastly.status_2xx
(gauge)
Number of responses sent with a Success status code.
Shown as response
fastly.status_301
(gauge)
Number of responses sent with status code 301 (Moved Permanently).
Shown as response
fastly.status_302
(gauge)
Number of responses sent with status code 302 (Found).
Shown as response
fastly.status_304
(gauge)
Number of responses sent with status code 304 (Not Modified).
Shown as response
fastly.status_3xx
(gauge)
Number of responses sent with a Redirection status code.
Shown as response
fastly.status_4xx
(gauge)
Number of responses sent with a Client Error status code.
Shown as response
fastly.status_503
(gauge)
Number of responses sent with status code 503 (Service Unavailable).
Shown as response
fastly.status_5xx
(gauge)
Number of responses sent with a Server Error status code.
Shown as response
fastly.synth
(gauge)
fastly.uncacheable
(gauge)
Number of requests that were denoted uncachable.
Shown as request
fastly.pci
(gauge)
Number of responses that have the PCI flag turned on
Shown as response
fastly.tls
(gauge)
Number of requests that were received over TLS
Shown as request
fastly.log
(gauge)
Number of log lines sent
fastly.ipv6
(gauge)
Number of requests that were received over IPv6
Shown as request
fastly.otfp
(gauge)
Number of responses that came from the Fastly On-the-Fly-Packager for On Demand Streaming service for Video-on-Demand
Shown as response
fastly.video
(gauge)
Number of responses with video segment or video manifest MIME type
Shown as response
fastly.http2
(gauge)
Number of requests that were received over HTTP2
Shown as request
fastly.shield
(gauge)
Number of requests from edge to the shield POP.
Shown as request
fastly.imgopto
(gauge)
Number of responses that came from the Fastly Image Optimizer service
Shown as response
fastly.blacklist
(gauge)
fastly.orig_req_body_size
(gauge)
Total body bytes sent to origin
Shown as byte
fastly.orig_req_header_size
(gauge)
Total header bytes sent to origin
Shown as byte
fastly.orig_resp_body_size
(gauge)
Total body bytes sent from origin
Shown as byte
fastly.orig_resp_header_size
(gauge)
Total header bytes sent from origin
Shown as byte
fastly.tls_v10
(gauge)
Number of requests received over TLS 1.0
Shown as request
fastly.tls_v11
(gauge)
Number of requests received over TLS 1.1
Shown as request
fastly.tls_v12
(gauge)
Number of requests received over TLS 1.2
Shown as request
fastly.tls_v13
(gauge)
Number of requests received over TLS 1.3
Shown as request
fastly.req_body_bytes
(gauge)
Total body bytes received
Shown as byte
fastly.req_header_bytes
(gauge)
Total header bytes received
Shown as byte
fastly.resp_body_bytes
(gauge)
Total body bytes delivered
Shown as byte
fastly.resp_header_bytes
(gauge)
Total header bytes delivered.
Shown as byte
fastly.object_size_1k
(gauge)
Number of objects served that were under 1KB in size
Shown as object
fastly.object_size_10k
(gauge)
Number of objects served that were between 1KB and 10KB in size
Shown as object
fastly.object_size_100k
(gauge)
Number of objects served that were between 10KB and 100KB in size
Shown as object
fastly.object_size_1m
(gauge)
Number of objects served that were between 100KB and 1MB in size
Shown as object
fastly.object_size_10m
(gauge)
Number of objects served that were between 1MB and 10MB in size
Shown as object
fastly.object_size_100m
(gauge)
Number of objects served that were between 10MB and 100MB in size
Shown as object
fastly.object_size_1g
(gauge)
Number of objects served that were between 100MB and 1GB in size
Shown as object
fastly.pass_time
(gauge)
Amount of time spent processing cache passes
Shown as second
fastly.status_400
(gauge)
Number of responses sent with status code 400 (Bad Request)
Shown as response
fastly.status_401
(gauge)
Number of responses sent with status code 401 (Unauthorized)
Shown as response
fastly.status_403
(gauge)
Number of responses sent with status code 403 (Forbidden)
Shown as response
fastly.status_404
(gauge)
Number of responses sent with status code 404 (Not Found)
Shown as response
fastly.status_416
(gauge)
Number of responses sent with status code 416 (Range Not Satisfiable)
Shown as response
fastly.status_500
(gauge)
Number of responses sent with status code 500 (Internal Server Error)
Shown as response
fastly.status_501
(gauge)
Number of responses sent with status code 501 (Not Implemented)
Shown as response
fastly.status_502
(gauge)
Number of responses sent with status code 502 (Bad Gateway)
Shown as response
fastly.status_504
(gauge)
Number of responses sent with status code 504 (Gateway Timeout)
Shown as response
fastly.status_505
(gauge)
Number of responses sent with status code 505 (HTTP Version Not Supported)
Shown as response
fastly.restarts
(gauge)
Number of restarts performed
fastly.shield_resp_body_bytes
(gauge)
Total body bytes delivered via a shield
Shown as byte
fastly.shield_resp_header_bytes
(gauge)
Total header bytes delivered via a shield
Shown as byte
fastly.otfp_resp_body_bytes
(gauge)
Total body bytes delivered from the Fastly On-the-Fly Packager for On Demand Streaming service for video-on-demand
Shown as byte
fastly.otfp_resp_header_bytes
(gauge)
Total header bytes delivered from the Fastly On-the-Fly Packager for On Demand Streaming service for video-on-demand
Shown as byte
fastly.otfp_shield_resp_body_bytes
(gauge)
Total body bytes delivered via a shield for the Fastly On-the-Fly Packager for On Demand Streaming service for video-on-demand
Shown as byte
fastly.otfp_shield_resp_header_bytes
(gauge)
Total header bytes delivered via a shield for the Fastly On-the-Fly Packager for On Demand Streaming service for video-on-demand
Shown as byte
fastly.otfp_manifests
(gauge)
Number of responses that were manifest files from the Fastly On-the-Fly Packager for On Demand Streaming service for video-on-demand
Shown as response
fastly.otfp_deliver_time
(gauge)
Total amount of time spent delivering a response from the Fastly On-the-Fly Packager for On Demand Streaming service for video-on-demand
Shown as second
fastly.otfp_shield_time
(gauge)
Total amount of time spent delivering a response via a sheild from the Fastly On-the-Fly Packager for On Demand Streaming service for video-on-demand
Shown as second
fastly.waf_logged
(gauge)
Number of requests that triggered a WAF rule and were logged
Shown as request
fastly.waf_blocked
(gauge)
Number of requests that triggered a WAF rule and were blocked
Shown as request
fastly.waf_passed
(gauge)
Number of requests that triggered a WAF rule and were passed
Shown as request
fastly.attack_req_body_bytes
(gauge)
Total body bytes received from requests that triggered a WAF rule
Shown as byte
fastly.attack_req_header_bytes
(gauge)
Total header bytes received from requests that triggered a WAF rule
Shown as byte
fastly.attack_logged_req_body_bytes
(gauge)
Total body bytes received from requests that triggered a WAF rule that was logged
Shown as byte
fastly.attack_logged_req_header_bytes
(gauge)
Total header bytes received from requests that triggered a WAF rule that was logged
Shown as byte
fastly.attack_blocked_req_body_bytes
(gauge)
Total body bytes received from requests that triggered a WAF rule that was blocked
Shown as byte
fastly.attack_blocked_req_header_bytes
(gauge)
Total header bytes received from requests that triggered a WAF rule that was blocked
Shown as byte
fastly.attack_passed_req_body_bytes
(gauge)
Total body bytes received from requests that triggered a WAF rule that was passed
Shown as byte
fastly.attack_passed_req_header_bytes
(gauge)
Total header bytes received from requests that triggered a WAF rule that was passed
Shown as byte
fastly.attack_resp_synth_bytes
(gauge)
Total bytes delivered for requests that triggered a WAF rule and returned a synthetic response
Shown as byte
fastly.imgopto_resp_body_bytes
(gauge)
Total body bytes delivered from the Fastly Image Optimizer service
Shown as byte
fastly.imgopto_resp_header_bytes
(gauge)
Total header bytes delivered from the Fastly Image Optimizer service
Shown as byte
fastly.imgopto_shield_resp_body_bytes
(gauge)
Total body bytes delivered via a shield from the Fastly Image Optimizer service
Shown as byte
fastly.imgopto_shield_resp_header_bytes
(gauge)
Total header bytes delivered via a shield from the Fastly Image Optimizer service
Shown as byte
fastly.origin_cache_fetches
(gauge)
Total number of completed requests made to backends (origins) that returned cacheable content
Shown as request
fastly.compute_requests
(gauge)
Total number of requests that were received for your service by Fastly
Shown as request
fastly.compute_request_time_ms
(gauge)
Total actual amount of time used to process your requests including active CPU time (in milliseconds)
Shown as millisecond
fastly.compute_ram_used
(gauge)
Amount of RAM used for your service by Fastly (in bytes)
Shown as byte
fastly.compute_execution_time_ms
(gauge)
Amount of active CPU time used to process your requests (in milliseconds)
Shown as millisecond
fastly.compute_bereqs
(gauge)
Number of backend requests started
Shown as request
fastly.compute_bereq_errors
(gauge)
Number of backend request errors including timeouts
Shown as request
fastly.compute_resource_limit_exceeded
(gauge)
Number of times a guest exceeded its resource limit, including heap, stack, globals, and code execution timeout
Shown as time
fastly.log_bytes
(gauge)
Total log bytes sent
Shown as byte
fastly.edge_requests
(gauge)
Number of requests sent by end users to Fastly
Shown as request
fastly.edge_resp_header_bytes
(gauge)
Total header bytes delivered from Fastly to the end user
Shown as byte
fastly.edge_resp_body_bytes
(gauge)
Total body bytes delivered from Fastly to the end user
Shown as byte
fastly.edge_hit_requests
(gauge)
Number of requests sent by end users to Fastly that resulted in a hit at the edge
Shown as request
fastly.edge_miss_requests
(gauge)
Number of requests sent by end users to Fastly that resulted in a miss at the edge
Shown as request
fastly.edge_hit_resp_header_bytes
(gauge)
Header bytes delivered for edge hits
Shown as byte
fastly.edge_miss_resp_header_bytes
(gauge)
Header bytes delivered for edge misses
Shown as byte
fastly.edge_hit_resp_body_bytes
(gauge)
Body bytes delivered for edge hits
Shown as byte
fastly.edge_miss_resp_body_bytes
(gauge)
Body bytes delivered for edge misses
Shown as byte
fastly.shield_hit_requests
(gauge)
Number of requests that resulted in a hit at a shield
Shown as request
fastly.shield_miss_requests
(gauge)
Number of requests that resulted in a miss at a shield
Shown as request
fastly.shield_hit_resp_header_bytes
(gauge)
Header bytes delivered for shield hits
Shown as byte
fastly.shield_miss_resp_header_bytes
(gauge)
Header bytes delivered for shield misses
Shown as byte
fastly.shield_hit_resp_body_bytes
(gauge)
Body bytes delivered for shield hits
Shown as byte
fastly.shield_miss_resp_body_bytes
(gauge)
Body bytes delivered for shield misses
Shown as byte
fastly.shield_revalidations
(gauge)
Number of responses received from origin with a 304 status code, in response to an If-Modified-Since or If-None-Match request to a shield. Under regular scenarios, a revalidation implies a cache hit. However, if using segmented caching this may result in a cache miss
Shown as response
fastly.shield_fetches
(gauge)
Number of requests made from one Fastly POP to another, as part of shielding
Shown as request
fastly.shield_fetch_header_bytes
(gauge)
Total request header bytes sent to a shield
Shown as byte
fastly.shield_fetch_body_bytes
(gauge)
Total request body bytes sent to a shield
Shown as byte
fastly.shield_fetch_resp_header_bytes
(gauge)
Total response header bytes sent from a shield to the edge
Shown as byte
fastly.shield_fetch_resp_body_bytes
(gauge)
Total response body bytes sent from a shield to the edge
Shown as byte
fastly.shield_cache_fetches
(gauge)
Total number of completed requests made to shields that returned cacheable content
Shown as request
fastly.origin_cache_fetch_resp_header_bytes
(gauge)
Header bytes received from an origin for cacheable content
Shown as byte
fastly.origin_cache_fetch_resp_body_bytes
(gauge)
Body bytes received from origin for cacheable content
Shown as byte
fastly.origin_revalidations
(gauge)
Number of responses received from origin with a 304 status code in response to an If-Modified-Since or If-None-Match request. Under regular scenarios, a revalidation implies a cache hit. However, if using Fastly Image Optimizer or segmented caching this may result in a cache miss
Shown as response
fastly.origin_fetches
(gauge)
Number of requests sent to origin
Shown as request
fastly.origin_fetch_header_bytes
(gauge)
Total request header bytes sent to origin
Shown as byte
fastly.origin_fetch_body_bytes
(gauge)
Total request body bytes sent to origin
Shown as byte
fastly.origin_fetch_resp_header_bytes
(gauge)
Total header bytes received from origin
Shown as byte
fastly.origin_fetch_resp_body_bytes
(gauge)
Total body bytes received from origin
Shown as byte
fastly.http3
(gauge)
Number of requests received over HTTP/3
Shown as request
fastly.imgvideo
(gauge)
Number of video responses that came from the Fastly Image Optimizer service
Shown as response
fastly.imgvideo_frames
(gauge)
Number of video frames that came from the Fastly Image Optimizer service
Shown as response
fastly.imgvideo_resp_body_bytes
(gauge)
Total body bytes of video delivered from the Fastly Image Optimizer service
Shown as byte
fastly.imgvideo_resp_header_bytes
(gauge)
Total header bytes of video delivered from the Fastly Image Optimizer service
Shown as byte
fastly.imgvideo_shield
(gauge)
Number of video responses delivered via a shield that came from the Fastly Image Optimizer service
Shown as response
fastly.imgvideo_shield_frames
(gauge)
Number of video frames delivered via a shield that came from the Fastly Image Optimizer service
Shown as response
fastly.imgvideo_shield_resp_header_bytes
(gauge)
Total header bytes of video delivered via a shield from the Fastly Image Optimizer service
Shown as byte
fastly.imgvideo_shield_resp_body_bytes
(gauge)
Total body bytes of video delivered via a shield from the Fastly Image Optimizer service
Shown as byte

イベント

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

サービスチェック

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

トラブルシューティング

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

参考資料