Installing on Windows¶
Prerequisites
Windows 10 / Windows Server 2016 or higher is required, and PowerShell must be run as Administrator for installation.
Selecting the DataWay Data Gateway Address¶
DataWay is the data gateway for TrueWatch. All data reported by collectors to TrueWatch must pass through the DataWay gateway.
Obtaining the PowerShell Installation Command¶
Remove-Item -ErrorAction SilentlyContinue Env:DK_*;
$env:DK_DATAWAY="https://openway.guance.com?token=tkn_7f5********fda8681";Set-ExecutionPolicy Bypass -scope Process -Force; Import-Module bitstransfer; start-bitstransfer -source https://static.guance.com/datakit-v2/install.ps1 -destination .install.ps1; powershell .install.ps1;
During the installation phase, you can define part of the DataKit configuration by adding environment variables to the installation command. Variables must be prefixed with
$env:, and multiple environment variables should be separated bysemicolons.
Common Configurations¶
- Add global host tags, separating multiple tags with English commas. For example:
host=datakit_hostname; - Specify the collectors to be enabled. By default, some host-related collectors are enabled. For example:
cpu,mem,disk.
RUM & HTTP¶
-
Configure the DataKit HTTP service address (❗️If using RUM functionality, configure it as a publicly accessible address). For example:
localhost; -
Configure the port bound to the DataKit HTTP service, default is 9529;
-
Choose whether to enable the RUM collector;
-
Choose whether to install the IP geolocation database;
-
Choose whether to disable the DataKit 404 page;
-
Choose whether to install the Source Map toolset.
APM¶
-
Choose whether to enable the DDTrace collector;
-
Choose whether to enable APM auto-injection.
DCA¶
Choose whether to enable the DCA service.
Using DataKit¶
Press the Windows key, type powershell, and you will see the popped-up powershell icon. Right-click and select "Run as administrator", then execute the installation command above.