This guide provides instructions for installing DataKit on Linux/macOS and Windows systems. DataKit is a lightweight and efficient data collector agent that gathers telemetry data from various sources, including logs, metrics, and traces.
To install DataKit on Linux or macOS, use the following commands. The installation script supports both bash and ash shells.
DK_DATAWAY=https://datagateway.hicloud.guru?token=<TOKEN> bash -c "$(curl -L https://static.guance.com/datakit/install.sh)"
After the installation, you will see a success message in the terminal.
To install DataKit on Windows, use the PowerShell command line. Ensure you run PowerShell as an administrator.
Remove-Item -ErrorAction SilentlyContinue Env:DK_*;
$env:DK_DATAWAY="https://datagateway.hicloud.guru?token=<TOKEN>";
Set-ExecutionPolicy Bypass -scope Process -Force;
Import-Module bitstransfer;
start-bitstransfer -source https://static.guance.com/datakit/install.ps1 -destination .install.ps1;
powershell ./.install.ps1;
DK_DATAWAY
DK_GLOBAL_HOST_TAGS
DK_GLOBAL_ELECTION_TAGS
DK_DEF_INPUTS
DK_CLOUD_PROVIDER
DK_USER_NAME
DK_LITE
DK_LOG_LEVEL
DK_HTTP_LISTEN
DK_HTTP_PORT