Amazon for Fluent Bit 映像 - Amazon Elastic Container Service
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

Amazon for Fluent Bit 映像

Amazon 提供了 Fluent Bit 映像以及 CloudWatch Logs 和 Firehose 的插件。我们建议使用 Fluent Bit 作为日志路由器,因为其资源利用率低于 Fluentd。有关更多信息,请参阅 CloudWatch Logs for Fluent BitAmazon Kinesis Firehose for Fluent Bit

为了获得高可用性,大多数Amazon Web Services 区域的 Amazon ECR 公共图库和 Amazon ECR 存储库上的 Amazon ECR 都提供了 Amazon for Fluent Bit 映像。

Amazon ECR Public Gallery

Amazon ECR 公共图库提供了 Amazon for Fluent Bit 映像。这是下载 Amazon for Fluent Bit 映像的推荐位置,因为它是一个公共存储库,可从所有Amazon Web Services 区域区域使用。有关更多信息,请参阅 Amazon ECR 公共图库上的 aws-for-fluent-bit

Linux

Amazon ECR Public Gallery 中 Fluent Bit 映像的 Amazon 支持带有 ARM 64x86-64 架构的 Amazon Linux 操作系统。

通过使用所需的映像标记指定存储库 URL,可以从 Amazon ECR 公共图库中提取 Amazon for Fluent Bit 映像。可在 Amazon ECR Public Gallery 上的映像标签选项卡上找到映像标签。

下面说明 Docker CLI 使用的语法。

docker pull public.ecr.aws/aws-observability/aws-for-fluent-bit:tag

例如,您可以使用此 Docker CLI 命令拉取最新的稳定 Amazon for Fluent Bit 映像。

docker pull public.ecr.aws/aws-observability/aws-for-fluent-bit:stable
注意

可以进行未经身份验证的拉取,但速率限制低于经过身份验证的拉取。拉取前如果要使用 Amazon 账户验证身份,请使用以下命令。

aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws

Windows

Amazon ECR Public Gallery 中 Fluent Bit 映像的 Amazon 支持带有以下操作系统的 AMD64 架构:

  • Windows Server 2022 Full

  • Windows Server 2022 Core

  • Windows Server 2019 Full

  • Windows Server 2019 Core

Amazon Fargate 上的 Windows 容器不支持 FireLens。

通过使用所需的映像标记指定存储库 URL,可以从 Amazon ECR 公共图库中提取 Amazon for Fluent Bit 映像。可在 Amazon ECR Public Gallery 上的映像标签选项卡上找到映像标签。

下面说明 Docker CLI 使用的语法。

docker pull public.ecr.aws/aws-observability/aws-for-fluent-bit:tag

例如,您可以使用此 Docker CLI 命令拉取最新的稳定 Amazon for Fluent Bit 映像。

docker pull public.ecr.aws/aws-observability/aws-for-fluent-bit:windowsservercore-stable
注意

可以进行未经身份验证的拉取,但速率限制低于经过身份验证的拉取。拉取前如果要使用 Amazon 账户验证身份,请使用以下命令。

aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws

Amazon ECR

Amazon for Fluent Bit 映像可在 Amazon ECR 上获得高可用性。这些映像在大多数Amazon Web Services 区域可用,包括 Amazon GovCloud (US)。

Linux

可以使用以下命令检索最新的稳定 Amazon for Fluent Bit 映像 URI。

aws ssm get-parameters \ --names /aws/service/aws-for-fluent-bit/stable \ --region us-east-1

使用以下命令来查询 Systems Manager Parameter Store 参数可以列出 Amazon for Fluent Bit 映像的所有版本。

aws ssm get-parameters-by-path \ --path /aws/service/aws-for-fluent-bit \ --region us-east-1

可以通过引用 Systems Manager 参数存储名称在 Amazon CloudFormation 模板中引用最新的稳定 Amazon for Fluent Bit 映像。以下是 示例:

Parameters: FireLensImage: Description: Fluent Bit image for the FireLens Container Type: AWS::SSM::Parameter::Value<String> Default: /aws/service/aws-for-fluent-bit/stable

Windows

可以使用以下命令检索最新的稳定 Amazon for Fluent Bit 映像 URI。

aws ssm get-parameters \ --names /aws/service/aws-for-fluent-bit/windowsservercore:stable \ --region us-east-1

使用以下命令来查询 Systems Manager Parameter Store 参数可以列出 Amazon for Fluent Bit 映像的所有版本。

aws ssm get-parameters-by-path \ --path /aws/service/aws-for-fluent-bit/windowsservercore \ --region us-east-1

可以通过引用 Systems Manager 参数存储名称在 Amazon CloudFormation 模板中引用最新的稳定 Amazon for Fluent Bit 映像。以下是 示例:

Parameters: FireLensImage: Description: Fluent Bit image for the FireLens Container Type: AWS::SSM::Parameter::Value<String> Default: /aws/service/aws-for-fluent-bit/windowsservercore:stable