Skip to content

ECS input uses task.PullStoppedAt as a measurement timestamp for ecs_task #8375

@vmiliantsei

Description

@vmiliantsei

Relevant telegraf.conf:

[[inputs.ecs]]

System info:

Telegraf version: 1.15.3

Expected behavior:

Have constant flow of ecs_task measurements in InfluxDB.

Actual behavior:

ecs_task measurements are added into InfluxDB only during ECS deployments.

Additional info:

I believe it's because of this line:

acc.AddFields("ecs_task", taskFields, tags, task.PullStoppedAt)

It uses the wrong field as a timestamp:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v3.html

PullStoppedAt
The timestamp for when the last container image pull finished.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/awsAWS plugins including cloudwatch, ecs, kinesisbugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions