Amazon Simple Workflow Service
Rapport de recherche Datadog : Bilan sur l'adoption de l'informatique sans serveur Rapport : Bilan sur l'adoption de l'informatique sans serveur

Amazon Simple Workflow Service

Crawler Crawler

Présentation

Amazon SWF aide les développeurs à concevoir, exécuter et mettre à l’échelle les tâches en arrière-plan qui présentent des étapes parallèles ou séquentielles.

Activez cette intégration pour visualiser dans Datadog toutes vos métriques de SWF.

Implémentation

Installation

Si vous ne l’avez pas déjà fait, configurez d’abord l’intégration Amazon Web Services.

Collecte de métriques

  1. Dans le carré d’intégration AWS, assurez-vous que l’option SWF est cochée dans la section concernant la collecte des métriques.
  2. Installez l’intégration Datadog/AWS SWF.

Collecte de logs

Activer le logging

Configurez Amazon SWF de façon à ce que ses logs soient envoyés vers un compartiment S3 ou vers Cloudwatch.

Remarque : si vous envoyez vos logs vers un compartiment S3, assurez-vous que amazon_swf est défini en tant que Target prefix.

Envoyer des logs à Datadog

  1. Si vous ne l’avez pas déjà fait, configurez la fonction Lambda de collecte de logs AWS avec Datadog.
  2. Une fois la fonction Lambda installée, ajoutez manuellement un déclencheur sur le compartiment S3 ou sur le groupe de logs Cloudwatch qui contient vos logs Amazon SWF dans la console AWS :

Données collectées

Métriques

aws.swf.activity_tasks_canceled
(count)
The count of activity tasks that were canceled.
aws.swf.activity_task_schedule_to_close_time
(gauge)
The time interval, in milliseconds, between the time when the activity was scheduled to when it closed.
Shown as millisecond
aws.swf.activity_task_schedule_to_close_time.maximum
(gauge)
Maximum time interval, in milliseconds, between the time when the activity was scheduled to when it closed.
Shown as millisecond
aws.swf.activity_task_schedule_to_close_time.minimum
(gauge)
Minimum time interval, in milliseconds, between the time when the activity was scheduled to when it closed.
Shown as millisecond
aws.swf.activity_task_schedule_to_start_time
(gauge)
The time interval, in milliseconds, between the time when the activity task was scheduled and when it started.
Shown as millisecond
aws.swf.activity_task_schedule_to_start_time.maximum
(gauge)
Maximum time interval, in milliseconds, between the time when the activity task was scheduled and when it started.
Shown as millisecond
aws.swf.activity_task_schedule_to_start_time.minimum
(gauge)
Minimum time interval, in milliseconds, between the time when the activity task was scheduled and when it started.
Shown as millisecond
aws.swf.activity_tasks_completed
(count)
The count of activity tasks that completed.
aws.swf.activity_tasks_failed
(count)
The count of activity tasks that failed.
aws.swf.activity_task_start_to_close_time
(gauge)
The time interval, in milliseconds, between the time that the decision task was started and the time it was closed.
Shown as millisecond
aws.swf.activity_task_start_to_close_time.maximum
(gauge)
Maximum time interval, in milliseconds, between the time that the decision task was started and the time it was closed.
Shown as millisecond
aws.swf.activity_task_start_to_close_time.minimum
(gauge)
Minimum time interval, in milliseconds, between the time that the decision task was started and the time it was closed.
Shown as millisecond
aws.swf.consumed_capacity
(count)
The count of requests per second.
Shown as request
aws.swf.decision_task_schedule_to_start_time
(gauge)
The time interval, in milliseconds, between the time that the decision task was scheduled and the time it was picked up by a worker and started.
Shown as millisecond
aws.swf.decision_task_schedule_to_start_time.maximum
(gauge)
Maximum time interval, in milliseconds, between the time that the decision task was scheduled and the time it was picked up by a worker and started.
Shown as millisecond
aws.swf.decision_task_schedule_to_start_time.minimum
(gauge)
Minimum time interval, in milliseconds, between the time that the decision task was scheduled and the time it was picked up by a worker and started.
Shown as millisecond
aws.swf.decision_tasks_completed
(count)
The count of decision tasks that have been completed.
aws.swf.decision_task_start_to_close_time
(gauge)
The time interval, in milliseconds, between the time that the decision task was started and the time it was closed.
aws.swf.decision_task_start_to_close_time.maximum
(gauge)
Maximum time interval, in milliseconds, between the time that the decision task was started and the time it was closed.
aws.swf.decision_task_start_to_close_time.minimum
(gauge)
Minimum time interval, in milliseconds, between the time that the decision task was started and the time it was closed.
aws.swf.pending_tasks
(count)
The count of pending tasks in a 1 minute interval for a specific Task List.
Shown as task
aws.swf.provisioned_bucket_size
(count)
The count of available requests per second.
Shown as request
aws.swf.provisioned_refill_rate
(count)
The count of requests per second that are allowed into the bucket.
Shown as request
aws.swf.scheduled_activity_tasks_timed_out_on_close
(count)
The count of activity tasks that were scheduled but timed out on close.
aws.swf.scheduled_activity_tasks_timed_out_on_start
(count)
The count of activity tasks that were scheduled but timed out on start.
aws.swf.started_activity_tasks_timed_out_on_close
(count)
The count of activity tasks that were started but timed out on close.
aws.swf.started_activity_tasks_timed_out_on_heartbeat
(count)
The count of activity tasks that were started but timed out due to a heartbeat timeout.
aws.swf.started_decision_tasks_timed_out_on_close
(count)
The count of decision tasks that started but timed out on closing.
aws.swf.throttled_events
(count)
The count of requests that have been throttled.
Shown as request
aws.swf.workflows_canceled
(count)
The count of workflows that were canceled.
aws.swf.workflows_completed
(count)
The count of workflows that were completed.
aws.swf.workflows_continued_as_new
(count)
The count of workflows that continued as new.
aws.swf.workflows_failed
(count)
The count of workflows that failed.
aws.swf.workflow_start_to_close_time
(gauge)
The time, in milliseconds, between the time the workflow started and the time it closed.
Shown as millisecond
aws.swf.workflow_start_to_close_time.maximum
(gauge)
Maximum time, in milliseconds, between the time the workflow started and the time it closed.
Shown as millisecond
aws.swf.workflow_start_to_close_time.minimum
(gauge)
Minimum time, in milliseconds, between the time the workflow started and the time it closed.
Shown as millisecond
aws.swf.workflows_terminated
(count)
The count of workflows that were terminated.
aws.swf.workflows_timed_out
(count)
The count of workflows that timed out, for any reason.

Chacune des métriques récupérées à partir d’AWS se verra assigner les mêmes tags que ceux qui apparaissent dans la console AWS, y compris, mais sans s’y limiter, le hostname et les groupes de sécurité.

Événements

L’intégration AWS SWF n’inclut aucun événement.

Checks de service

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

Dépannage

Besoin d’aide ? Contactez l’assistance Datadog.