Skip to content

Add lifecycle option for datadog containers #1879

Open
@hussambhivestack

Description

@hussambhivestack

I propose adding the option to configure a lifecycle preStop hook with a sleep delay for datadog containers.

Currently, we introduce a 30-second sleep in our services to ensure zero-downtime deployments on EKS (https://glasskube.dev/blog/kubernetes-zero-downtime-deployments-aws-eks/). However, we've noticed that the Datadog agent container shuts down prematurely, resulting in the loss of trace and metric data during the shutdown process.

By enabling a configurable preStop hook, we can delay the termination of Datadog containers, allowing them to continue collecting and forwarding telemetry data until the primary services have shut down gracefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions