Fastly

Graphique Fastly

Présentation

Connectez-vous à Fastly pour consulter les principales métriques Fastly (telles que la taille de l’en-tête et la couverture de cache) en contexte avec le reste de vos métriques Datadog.

Configuration

Installation

Aucune étape d’installation requise.

Configuration

Collecte de métriques

Créez un token d’API avec un accès en lecture seule sur la page de gestion des tokens de Fastly. Obtenez votre Service ID depuis le dashboard et saisissez-le dans le carré d’intégration Fastly.

Le Service ID est un code alphanumérique, comme 5VqE6MOOy1QFJbgmCK41pY (cet exemple provient de la documentation sur l'API Fastly, disponible en anglais).

Si vous utilisez plusieurs Service ID provenant d’un compte unique, saisissez un token d’API sur chaque ligne.

Collecte de logs

La collecte de logs n’est plus prise en charge pour ce site.

Configurez l’endpoint Datadog de façon à transmettre les logs Fastly à Datadog. Vous pouvez choisir l’endpoint Datadog ou Datadog (via Syslog). Il est conseillé d’utiliser l’endpoint Datadog pour une transmission plus fiable des logs via Syslog.

Sélectionner l’endpoint de journalisation
  1. Connectez-vous à l’interface Web de Fastly et cliquez sur Configure link.
  2. Depuis le menu Service, sélectionnez le service approprié.
  3. Cliquez sur le bouton Configuration, puis sélectionnez Clone active. La page Domains s’affiche.
  4. Cliquez sur le lien Logging. La page des endpoints de journalisation s’affiche. Cliquez sur Create Endpoint sous Datadog ou sous les options Datadog (via Syslog).
Configurer l’endpoint Datadog (recommandé)
  1. Attribuez un nom à l’endpoint, par exemple Datadog.
  2. Configurez le format de log. Par défaut, le format de log Datadog/Fastly recommandé est déjà fourni et peut être personnalisé.
  3. Sélectionnez la même région que celle de votre compte Datadog : .
  4. Ajoutez votre clé d’API Datadog.
  5. Cliquez sur Create en bas.
  6. Cliquez sur Activate en haut à droite pour activer la nouvelle configuration. Patientez quelques minutes pour que votre compte commence à recevoir des logs.
Configurer l’endpoint Syslog
  1. Attribuez un nom à l’endpoint, par exemple Datadog.

  2. Configurez le format de log de façon à inclure le format de log Datadog/Fastly recommandé, en précisant d’abord votre clé d’API Datadog.

    <DATADOG_API_KEY> <DATADOG_FASTLY_LOG_FORMAT>
    

    Remarque : votre clé d’API Datadog DOIT être placée avant le format de log Datadog/Fastly, sans quoi vos logs ne s’afficheront pas dans Datadog. Consultez la section Variables utiles à enregistrer (en anglais) pour en savoir plus.

  3. Définissez Syslog Address sur .

  4. Définissez Port sur .

  5. Définissez TLS sur yes.

  6. Définissez TLS Hostname sur .

  7. Dans la section des options avancées, sélectionnez le log line format Blank.

  8. Enfin, enregistrez l’endpoint et déployez le service. Consultez ensuite les logs dans le Log Explorer Datadog.

Données collectées

Métriques

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

Événements

L’intégration Fastly n’inclut aucun événement.

Checks de service

L’intégration Fastly n’inclut aucun check de service.

Dépannage

Besoin d’aide ? Contactez l’assistance Datadog.

PREVIEWING: may/unit-testing