Alternative methods for providing a config file to an OpenTelemetry container in ECS/Fargate without using the –config command

huangapple go评论53阅读模式
英文:

Alternative methods for providing a config file to an OpenTelemetry container in ECS/Fargate without using the --config command

问题

我计划在ECS/Fargate中运行一个OpenTelemetry容器,并寻求一种更简单的方法来为容器提供配置文件。我宁愿不创建一个专门用于存储此配置文件的单独卷。除了使用--config命令之外,是否有其他供应配置文件给OpenTelemetry容器的替代方法?

英文:

I'm planning to run an OpenTelemetry container in ECS/Fargate and I'm seeking a simpler approach for providing a config file to the container. I'd prefer not to create a separate volume solely for storing this config file. Are there any alternative methods for supplying a config file to an OpenTelemetry container other than using the --config command?

答案1

得分: 3

收集器包括一些配置提供者,可以与 --config 一起使用,除了基于文件的提供者。如果您使用的是 contrib 或 ADOT 分发版本,还有一个S3提供者,可用于从S3加载配置。ECS任务定义可用于将配置从其他来源加载到环境变量中,然后使用 env://<VAR_NAME> 来使收集器从该环境变量加载配置。

英文:

The collector includes a number of configuration providers that can be used with --config in addition to the file-based provider. If you're using the contrib or ADOT distributions there is also an S3 provider that can be used to load configuration from S3. ECS task definition can be used to load configuration from other sources into an environment variable and then use env://<VAR_NAME> to have the collector load configuration from that environment variable.

答案2

得分: 0

我使用了AWS参数存储来存储整个配置文件。

英文:

I used AWS parameter store to store entire config file

huangapple
  • 本文由 发表于 2023年6月15日 01:24:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76476129.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定