Dashboard de Fastly que muestra la tasa de aciertos de caché, la tasa de éxito y otras métricas

Información general

Conecta Fastly a Datadog para ver métricas clave de Fastly (por ejemplo, cobertura de caché y tamaño del encabezado) en contexto con el resto de tus métricas de Datadog.

La integración incluye monitores y dashboards listos para usar que te permiten ver métricas en conjunto, alternar entre métricas de Fastly y logs relacionados, y crear monitores que te alertan cuando una métrica supera un umbral definido por el usuario o se comporta de manera anómala.

Configuración

Instalación

No se requieren pasos de instalación.

Configuración

Recopilación de métricas

Crea un token de API de acceso de solo lectura en la página de gestión de tokens de Fastly, obtén tu ID de servicio del dashboard e ingrésalo en el cuadro de integración de Fastly.

El ServiceID es el código alfanumérico, por ejemplo: 5VqE6MOOy1QFJbgmCK41pY (ejemplo de la Documentación de la API de Fastly).

Si usas varios IDs de servicio de una cuenta, ingresa un token de API en cada línea.

El nombre de la cuenta es una forma de organizar tus cuentas y no se usa como parte del proceso de ingesta de datos.

Recopilación de logs

La recopilación de logs no es compatible con este sitio.

Configura el endpoint de Datadog para reenviar logs de Fastly a Datadog. Puedes elegir el endpoint de Datadog o Datadog (via Syslog). Se recomienda el endpoint de Datadog para una entrega más confiable de logs a través de Syslog.

Seleccionar el endpoint de registro
  1. Inicia sesión en la interfaz web de Fastly y haz clic en Configure link (Configurar enlace).
  2. En el menú Service (Servicio), selecciona el servicio adecuado.
  3. Haz clic en el botón Configuration (Configuración) y, a continuación, selecciona Clone active (Clonar activo). Aparecerá la página de dominios.
  4. Haz clic en el enlace Logging (Registro). Aparecerá la página de endpoints de registro. Haz clic en Create Endpoint (Crear endpoint) en Datadog o en las opciones Datadog (with Syslog) (Datadog [con Syslog]).
Configurar el endpoint de Datadog (recomendado)
  1. Asigna un nombre al endpoint, por ejemplo: Datadog.
  2. Configura el formato del log. De manera predeterminada, el formato del log de Datadog y Fastly recomendado ya se proporciona y se puede personalizar.
  3. Selecciona tu región para que coincida con la región de tu cuenta de Datadog:
  4. Añade tu clave de API de Datadog.
  5. Haz clic en Create (Crear) en la parte inferior.
  6. Haz clic en Activate (Activar) en la parte superior derecha para activar la configuración nueva. Después de unos minutos, los logs deberían empezar a llegar a tu cuenta.
Configurar el endpoint de Syslog
  1. Asigna un nombre al endpoint, por ejemplo: Datadog.

  2. Configura el formato del log para que incluya el formato del log de Datadog y Fastly recomendado con tu clave de API de Datadog al principio. Consulta el Uso del formato de log de JSON en la documentación de Fastly para ver un ejemplo.

    <DATADOG_API_KEY> <DATADOG_FASTLY_LOG_FORMAT>
    

    Nota: Tu clave de API de Datadog DEBE estar delante del formato del log de Datadog y Fastly para que tus logs se muestren en Datadog. Consulta las Variables útiles para el registro de logs a fin de obtener más detalles.

  3. Establece Syslog Address (Dirección de Syslog) en:

  4. Establece Port (Puerto) en:

  5. Establece TLS en yes

  6. Establece TLS Hostname (Nombre de host de TLS) en:

  7. En la sección de opciones avanzadas, selecciona Blank como formato de línea del log

  8. Por último, guarda el endpoint y despliega el servicio. Consulta los logs en tu Explorador de logs de Datadog.

Datos recopilados

Métricas

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

Eventos

La integración de Fastly no incluye eventos.

Checks de servicio

La integración de Fastly no incluye checks de servicio.

Solucionar problemas

¿Necesitas ayuda? Ponte en contacto con el servicio de asistencia de Datadog.

Referencias adicionales

PREVIEWING: rtrieu/product-analytics-ui-changes