Agent Advanced Configuration
This document was translated by ChatGPT
#1. Introduction
DeepFlow Agent advanced configuration.
DeepFlow uses a declarative API to centrally manage all agents, while the data collection configuration of agents is uniformly distributed by the deepflow-server to the agents within the corresponding agent-group based on the agent-group-config content.
An agent-group is used to manage the configuration of a group of agents. By specifying vtap-group-id-request in the agent configuration file (opens new window) (K8s ConfigMap or /etc/deepflow-agent.yaml), you can declare the agent-group it belongs to (if not specified, the Default configuration is used by default). Finally, the association between agent, agent-group, and agent-group-config is established through the agent-group-id.
#1.1 Common Operations for agent-group
View the agent-group list:
deepflow-ctl agent-group list
Create an agent-group:
deepflow-ctl agent-group create <AGENT_GROUP_NAME>
View the created agent-group-id:
deepflow-ctl agent-group list <AGENT_GROUP_NAME>
#1.2 Common Operations for agent-group-config
Refer to the default configuration of agent-group-config, extract the parts that need to be modified, and output them to the <AGENT_GROUP_CONFIG>.yaml file, for example:
global:
limits:
max_millicpus: 2000
max_memory: 4096
2
3
4
#1.2.1 Create an agent-group-config
deepflow-ctl agent-group-config create <AGENT_GROUP_ID> -f <AGENT_GROUP_CONFIG>.yaml
#1.2.2 View the agent-group-config list
deepflow-ctl agent-group-config list
#1.2.3 View the configuration of a specified agent-group-config
deepflow-ctl agent-group-config list <AGENT_GROUP_ID> -o yaml
#1.2.4 View all default configurations of agent-group-config
deepflow-ctl agent-group-config example
#1.2.5 Update the agent-group-config configuration
deepflow-ctl agent-group-config update <AGENT_GROUP_ID> -f <AGENT_GROUP_CONFIG>.yaml
#1.3 Description of Each Configuration Item
For details, please refer to the Configuration Manual, where each parameter is explained in detail with usage examples.