Self-hosted Node Management¶
In addition to the nodes built into Guance, you can create new synthetic test nodes anywhere in the world. By creating nodes in different geographic locations and with different ISPs, you can perform synthetic monitoring from multiple regions and gain full visibility into site availability.
Create¶
Go to Synthetic Monitoring > Self-hosted Node Management and click Create.
- Select the country/region and the province or city;
- Select the ISP;
- The node code is filled in automatically; node codes cannot be duplicated within the current workspace;
- Enter the node name; node names cannot be duplicated within the current workspace;
- Click OK.
Manage¶
In the node list, you can view and manage all self-hosted nodes in the current workspace in a unified way through the following operations:
- Click Get Configuration to copy the configuration information directly in the pop-up window;
- Click Operation Audit to view the operation records related to the node;
- Click Delete to delete the current node. If a self-hosted node is associated with a synthetic test, after deletion the node will no longer report data for that test; data that has already been reported is not affected.
Install Nodes¶
After creating a node, you need to install DataKit on a host that can access the synthetic test targets, and configure the synthetic testing collector. The node host must also be able to access the server address in the configuration and the DataKit data reporting address.
Before using TCP connection state checks, make sure the self-hosted node supports the corresponding configuration and execution capability. Saving a new condition in the console alone does not give an existing node this capability; to update a node, see DataKit Upgrade.
Host Deployment¶
The configuration file of the synthetic testing collector is <DataKit installation directory>/conf.d/samples/dialtesting.conf. Under the default installation path, the corresponding files are:
| Operating System | Configuration File |
|---|---|
| Linux / macOS | /usr/local/datakit/conf.d/samples/dialtesting.conf |
| Windows 64-bit | C:\Program Files\datakit\conf.d\samples\dialtesting.conf |
For other installation paths, see DataKit Installation Directory.
- In Self-hosted Node Management > Get Configuration, copy the node's
server,region_id,ak, andsk. - Go to
conf.d/samplesunder the DataKit installation directory and copydialtesting.conf.sampletodialtesting.conf. If this node has already been configured, edit the existing file directly instead of overwriting it or creating a duplicate configuration. -
In the
[[inputs.dialtesting]]configuration section, replace the configuration items of the same name with the values provided by the console, and keep the other configurations. All the placeholders below must be replaced with actual values; this configuration is not written todatakit.conf:To run synthetic tests against internal network addresses, you also need to set
disable_internal_network_task = falsein the same[[inputs.dialtesting]]section. -
After saving the file, restart DataKit. DataKit 2.1.0 and later use
datakit service restart, which may requiresudoon Linux / macOS; for other versions, see the corresponding service management commands. - Select the self-hosted node in a synthetic test, run the test, and then confirm in the Synthetic Test Explorer that the results have been reported.
For Kubernetes deployment and the full configuration parameters, see Network Synthetic Testing Collector Configuration.
Billing¶
Running synthetic tests on self-hosted nodes also incurs synthetic test execution and data storage charges. Execution counts are converted at 1/10 of those for public synthetic test nodes: each browser test execution is billed as 1 execution, and each execution of other synthetic test types is billed as 0.1 executions.
For specific metering rules, see Synthetic Monitoring Billing; for unit prices, see Commercial Plan Billing Details.