1

我指的是这个页面:

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

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

4

2 回答 2

1

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.

于 2020-10-15T18:37:15.557 回答
1

对于删除他/她的答案的人:这是一个正确的答案。我不知道你为什么删除它。无论如何,我再次发布以防有人在这里绊倒。

您可以通过使用INSTANA_AGENT_UPDATES_FREQUENCYINSTANA_AGENT_UPDATES_TIME环境变量来控制频率和时间。

在这一点上,通过 env 变量进行更新mode仍然未知。

查看此页面了解更多信息:https ://www.instana.com/docs/setup_and_manage/host_agent/on/docker/#updates-and-version-pinning

于 2020-06-05T19:35:52.303 回答