首页 > 解决方案 > 如何在动态代理中设置模式和时间?

问题描述

我指的是这个页面:

https://www.instana.com/docs/setup_and_manage/host_agent/updates/#update-interval

除了登录到 pod 并手动更改 etc/instana/com.instana.agent.main.config.UpdateManager.cfg 文件中的文件之外,有没有办法从外部作为环境变量传递模式和时间?

标签: instana

解决方案


Most agent settings that one may want to change quickly are available as environment variables, see https://www.instana.com/docs/setup_and_manage/host_agent/on/docker. For example, setting the mode via environment variable is supported as well with INSTANA_AGENT_MODE, see e.g., https://hub.docker.com/r/instana/agent. The valid values are:

  • APM: the default, the agent monitors everything
  • INFRASTRUCTURE: the agent will collect metrics and entities but not traces
  • OFF: agent runs but collects no telemetry
  • AWS: agent will collect data about AWS managed services in a region and an account, supported on EC2 and Fargate, and with some extra configurations, on hosts outside AWS

On Kubernetes, it is also of course possible to use a ConfigMap to override files in the agent container.


推荐阅读