Installing on Kubernetes¶
Prerequisites
Requires Linux 2.6.23 or higher, supports installation on both ARM and x86 architectures.
Choose the DataWay Gateway Address¶
DataWay is the data gateway for Guance. All data collected by the collector and reported to Guance must pass through the DataWay gateway.
Run the following script to download¶
Modify the datakit.yaml file¶
- Configure the DataWay Gateway Address
- DataKit enables host-related collectors by default
- name: ENV_DEFAULT_ENABLED_INPUTS
value: cpu,disk,diskio,mem,swap,system,hostobject,net,host_processes,container
To enable more collectors, simply append them to the configuration above. Of course, you can also remove certain collectors from this list.
- Collectors enabled by default in Guance:
| Collector Name | Description |
|---|---|
cpu |
Collects host CPU usage |
disk |
Collects disk usage |
diskio |
Collects host disk IO |
mem |
Collects host memory usage |
swap |
Collects Swap memory usage |
system |
Collects host operating system load |
net |
Collects host network traffic |
host_processes |
Collects a list of resident processes (alive for more than 10min) on the host |
hostobject |
Collects basic host information (e.g., OS info, hardware info) |
container |
Collects possible container objects and container logs on the host |
In DaemonSet mode, DataKit also supports configuration via multiple environment variables.
Execute the following command to install DataKit¶
After installation, the system will automatically create a DaemonSet deployment for DataKit.