Installing on Linux¶
Prerequisites
Requires Linux 2.6.23 or higher, supports installation on ARM and x86 architectures.
Selecting 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.
Installation Command¶
Copy the installation command below and run it on your server.
DK_DATAWAY="https://openway.guance.com?token=tkn_7f5********fda8681" bash -c "$(curl -L https://static.guance.com/datakit/install.sh)"
During the installation phase, you can define certain DataKit configurations by adding environment variables to the installation command. Separate multiple environment variables with a
space.
Common Configurations¶
- Add global host tags, separate multiple tags with English commas. For example:
host=datakit_hostname; - Specify the collectors to enable. 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 this to a publicly accessible address). For example:
localhost; -
Configure the port the DataKit HTTP service binds to, 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.