Skip to content

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

wget https://static.guance.com/datakit/datakit.yaml

Modify the datakit.yaml file

  1. Configure the DataWay Gateway Address
- name: ENV_DATAWAY
  value: https://openway.guance.com?token=tkn_7f5********fda8681
  1. 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.

View more environment variables.

Execute the following command to install DataKit

kubectl apply -f datakit.yaml

After installation, the system will automatically create a DaemonSet deployment for DataKit.

Check the DataKit running status

kubectl get pod -n datakit

Feedback

Is this page helpful? ×