我指的是这个页面:
https://www.instana.com/docs/setup_and_manage/host_agent/updates/#update-interval
除了登录到 pod 并手动更改 etc/instana/com.instana.agent.main.config.UpdateManager.cfg 文件中的文件之外,有没有办法从外部作为环境变量传递模式和时间?
我指的是这个页面:
https://www.instana.com/docs/setup_and_manage/host_agent/updates/#update-interval
除了登录到 pod 并手动更改 etc/instana/com.instana.agent.main.config.UpdateManager.cfg 文件中的文件之外,有没有办法从外部作为环境变量传递模式和时间?
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 everythingINFRASTRUCTURE
: the agent will collect metrics and entities but not tracesOFF
: agent runs but collects no telemetryAWS
: 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 AWSOn Kubernetes, it is also of course possible to use a ConfigMap to override files in the agent container.
对于删除他/她的答案的人:这是一个正确的答案。我不知道你为什么删除它。无论如何,我再次发布以防有人在这里绊倒。
您可以通过使用INSTANA_AGENT_UPDATES_FREQUENCY
和INSTANA_AGENT_UPDATES_TIME
环境变量来控制频率和时间。
在这一点上,通过 env 变量进行更新mode
仍然未知。
查看此页面了解更多信息:https ://www.instana.com/docs/setup_and_manage/host_agent/on/docker/#updates-and-version-pinning