You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There can be 3 ways configurations can be passed to agent.
via env variables.
via command line arguments.
via a configuration file named agent-conf.yaml. This file can be placed next to agent binary.
# Possible env variable and corresponding config are (more to be added later)
KM_API_KEY # --api-key
KM_COLLECTOR_ENDPOINT # --collector-endpoint
KM_CONFIG_CHECK_INTERVAL # --config-check-interval
When agent runs as service (Linux/Windows) it takes the config file as parameter km-agent start --config="./agent-conf.yaml"
How config file is generated
When user start with agent installation, the command will have few env variables preset. For example:
The installation process should write the configuration yaml file with the env variable inputs.
Docker/k8s
In case of container environment, the installation script starts the agent container by passing env variables.
Reading config
When agent boots up, it'll read the config file and load them into env. This way we can use env parameter in collector config without hard coding anything into collector config. command line arguments take priority over config file. If user ever has to change config, they can simply edit the agent-conf.yaml.
The text was updated successfully, but these errors were encountered:
There can be 3 ways configurations can be passed to agent.
agent-conf.yaml
. This file can be placed next to agent binary.When agent runs as service (Linux/Windows) it takes the config file as parameter
km-agent start --config="./agent-conf.yaml"
How config file is generated
When user start with agent installation, the command will have few env variables preset. For example:
Windows/Linux
The installation process should write the configuration yaml file with the env variable inputs.
Docker/k8s
In case of container environment, the installation script starts the agent container by passing env variables.
Reading config
When agent boots up, it'll read the config file and load them into env. This way we can use env parameter in collector config without hard coding anything into collector config. command line arguments take priority over config file. If user ever has to change config, they can simply edit the
agent-conf.yaml
.The text was updated successfully, but these errors were encountered: