Skip to content

Install on Windows

Prerequisites

Windows 7, Server 2008R2 or a higher version is required, and PowerShell must be run as an administrator for installation.

Choose a DataWay Gateway Address

DataWay is the data gateway for Guance. All data reported by collectors to Guance must pass through the DataWay gateway.

Get 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/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. Prepend the variables with $env:, and separate multiple environment variables with semicolons.

View more environment variables.

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, this must be configured 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

DCA

Choose whether to enable the DCA service.

Using DataKit

Press the Windows key, type powershell, and you will see the PowerShell icon pop up. Right-click and select "Run as administrator", then execute the installation command above.

Feedback

Is this page helpful? ×