You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an application is running inside of a Docker container, on a Linux guest, our agent is able to retrieve an identifier for that container via cgroups that are populated by Docker. However, when the host is AWS ECS Fargate, those cgroups are not present within the guest. Instead, a metadata API that is available to the guest should be consulted.
We need to:
Update the following function to utilize this metadata endpoint if the cgroups are not available:
`${CGROUPS_V2_PATH} not found, trying to parse container id from ${CGROUPS_V1_PATH}`
)
findCGroupsV1(callback)
return
}
parseCGroupsV2(data,callback)
})
}
We should first attempt to look for the API endpoint through the URI available in the ECS_CONTAINER_METADATA_URI_V4 environment variable. If that environment variable does not exist, try the ECS_CONTAINER_METADATA_URI environment variable. If neither exist, exit with a failure as the function currently does.
When an application is running inside of a Docker container, on a Linux guest, our agent is able to retrieve an identifier for that container via cgroups that are populated by Docker. However, when the host is AWS ECS Fargate, those cgroups are not present within the guest. Instead, a metadata API that is available to the guest should be consulted.
We need to:
node-newrelic/lib/utilization/docker-info.js
Lines 62 to 88 in 07a841b
ECS_CONTAINER_METADATA_URI_V4
environment variable. If that environment variable does not exist, try theECS_CONTAINER_METADATA_URI
environment variable. If neither exist, exit with a failure as the function currently does.The text was updated successfully, but these errors were encountered: