Fastly
Datadog の調査レポート: サーバーレスの状態 レポート: サーバーレスの状態

Fastly

Crawler クローラー

概要

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

セットアップ

インストール

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

コンフィグレーション

メトリクスの収集

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

サービス ID は、5VqE6MOOy1QFJbgmCK41pY のような英数字のコードです (こちらの例)。

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

- containerPort: 8126

      hostPort: 8126
      name: traceport
      protocol: TCP

Fastly のログを Datadog アプリケーションに転送するには、Syslog エンドポイントを構成します。

ログエンドポイントの選択
  1. Fastly Web インターフェイスにログインし、Configure リンクをクリックします。
  2. Service メニューから、該当するサービスを選択します。
  3. Configuration ボタンをクリックし、次に Clone active を選択します。Domains ページが表示されます。
  4. Logging リンクをクリックします。ログエンドポイントページが表示されます。Syslog エンドポイントを選択します。
Syslog エンドポイントの構成
  1. エンドポイントに名前を付けます (例: Datadog)。
  2. ログ形式を構成して、推奨の Datadog-Fastly ログ形式の先頭に Datadog API キーを含めます。

    <DATADOG_API_KEY> <DATADOG_FASTLY_LOG_FORMAT>

    注: Datadog-Fastly ログ形式の先頭に Datadog API キーがないと、ログが Datadog に表示されません。ログ変数の詳細については、Fastly のドキュメントを参照してください。

  3. Syslog Addressintake.logs.datadoghq.com (EU リージョンの場合は、tcp-intake.logs.datadoghq.eu) に設定します。

  4. Port10516 (EU リージョンの場合は 443) に設定します。

  5. TLSyes に設定します。

  6. TLS Hostnameintake.logs.datadoghq.com に設定します。

  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 Shield to Origin
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 インテグレーションには、イベントは含まれません。

サービスのチェック

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

トラブルシューティング

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