Andrew Moss 53efa359d6 Regenerate topic base on connect (#9044) 4 years ago
..
tests 9ee4478f9a Fake collector to provoke ACLK messages (#8427) 5 years ago
Makefile.am 9ee4478f9a Fake collector to provoke ACLK messages (#8427) 5 years ago
README.md feba2d1c80 Add ACLK Connection Details (#9047) 4 years ago
aclk_common.c 844a2d4e03 Fix Coverity defects (#8579) 5 years ago
aclk_common.h a8e9fcb363 HTTP proxy support + some cleanup (#8418) 5 years ago
aclk_lws_https_client.c 844a2d4e03 Fix Coverity defects (#8579) 5 years ago
aclk_lws_https_client.h 10090b556b Support SOCKS5 in ACLK Challenge/Response and rewrite with LWS (#8404) 5 years ago
aclk_lws_wss_client.c f20269d836 Fix the latency issue on the ACLK and suppress the diagnostics (#8992) 4 years ago
aclk_lws_wss_client.h aa3ec552c8 Enable support for Netdata Cloud. 4 years ago
agent_cloud_link.c 53efa359d6 Regenerate topic base on connect (#9044) 4 years ago
agent_cloud_link.h aa3ec552c8 Enable support for Netdata Cloud. 4 years ago
mqtt.c f20269d836 Fix the latency issue on the ACLK and suppress the diagnostics (#8992) 4 years ago
mqtt.h 2c716dc31e ACLK: Implemented Last Will and Testament (#8410) 5 years ago

README.md

Agent-cloud link (ACLK)

The Agent-Cloud link (ACLK) is the mechanism responsible for securely connecting a Netdata Agent to your web browser through Netdata Cloud. The ACLK establishes an outgoing secure WebSocket (WSS) connection to Netdata Cloud on port 443. The ACLK is encrypted, safe, and is only established if you claim your node.

The Cloud App lives at app.netdata.cloud which currently resolves to 35.196.244.138. However, this IP or range of IPs can change without notice. Watch this page for updates.

Netdata is a distributed monitoring system. Very few data are streamed to the cloud, such as data about:

  • All configured alarms and their current status
  • Metrics that are requested by the cloud user
  • A list of the active collectors

For a guide to claiming a node using the ACLK, plus additional troubleshooting and reference information, read our get started with Cloud guide or the full claiming documentation.

Enable and configure the ACLK

The ACLK is enabled by default, with its settings automatically configured and stored in the Agent's memory. No file is created at var/lib/netdata/cloud.d/cloud.conf until you either claim a node or create it yourself. The default configuration uses two settings:

[global]
  enabled = yes
  cloud base url = https://app.netdata.cloud

If your Agent needs to use a proxy to access the internet, you must set up a proxy for claiming.

Disable the ACLK

You have two options if you prefer to disable the ACLK and not use Netdata Cloud.

Disable at installation

You can pass the --disable-cloud parameter to the Agent installation when using a kickstart script (kickstart.sh or kickstart-static64.sh), or a manual installation from Git.

When you pass this parameter, the installer does not download or compile any extra libraries. Once running, the Agent kills the thread responsible for the ACLK and claiming behavior, and behaves as though the ACLK, and thus Netdata Cloud, does not exist.

Disable at runtime

You can change a runtime setting in your cloud.conf file to disable the ACLK. This setting only stops the Agent from attempting any connection via the ACLK, but does not prevent the installer from downloading and compiling the ACLK's dependencies.

The file typically exists at /var/lib/netdata/cloud.d/cloud.conf, but can change if you set a prefix during installation. To disable the ACLK, open that file and change the enabled setting to no:

[global]
    enabled = no

If the file at /var/lib/netdata/cloud.d/cloud.conf doesn't exist, you need to create it.

Copy and paste the first two lines from below, which will change your prompt to cat.

cd /var/lib/netdata/cloud.d
cat > cloud.conf << EOF

Copy and paste in lines 3-6, and after the final EOF, hit Enter. The final line must contain only EOF. Hit Enter again to return to your normal prompt with the newly-created file.

To get your normal prompt back, the final line must contain only EOF.

[global]
    enabled = no
    cloud base url = https://app.netdata.cloud
EOF

You also need to change the file's permissions. Use grep "run as user" /etc/netdata/netdata.conf to figure out which user your Agent runs as (typically netdata), and replace netdata:netdata as shown below if necessary:

sudo chmod 0770 cloud.conf
sudo chown netdata:netdata cloud.conf

Restart your Agent to disable the ACLK.

Re-enable the ACLK

If you first disable the ACLK and any Cloud functionality and then decide you would like to use Cloud, you must either reinstall Netdata with Cloud enabled or change the runtime setting in your cloud.conf file.

If you passed --disable-cloud to netdata-installer.sh during installation, you must reinstall your Agent. Use the same method as before, but pass --require-cloud to the installer. When installation finishes you can claim your node.

If you changed the runtime setting in your var/lib/netdata/cloud.d/cloud.conf file, edit the file again and change enabled to yes:

[global]
    enabled = yes

Restart your Agent and claim your node.

[analytics](<>)