diff --git a/plugins/inputs/ecs/ecs.go b/plugins/inputs/ecs/ecs.go index 4288c861..c7f93959 100644 --- a/plugins/inputs/ecs/ecs.go +++ b/plugins/inputs/ecs/ecs.go @@ -3,6 +3,7 @@ package ecs import ( "context" "fmt" + "log" "os" "strings" "time" @@ -163,6 +164,8 @@ func resolveEndpoint(ecs *Ecs) { return } + log.Print("I! ECS_CONTAINER_METADATA_URI Environment var is unset, using v2 ecs endpoint") + // Use v2 endpoint if nothing else is available. ecs.EndpointURL = v2Endpoint ecs.metadataVersion = 2