To use the host monitoring feature of CloudMonitor, you must install the CloudMonitor agent on your hosts.

Important The CloudMonitor agent for Go is no longer upgraded. We recommend that you use the CloudMonitor agent for C++. For more information, see Install and uninstall the CloudMonitor agent for C++

Installation path

  • Linux: /usr/local/cloudmonitor
  • Windows: C:\Program Files\Alibaba\cloudmonitor

Processes

After the CloudMonitor agent is installed, the following processes run on your hosts:

  • 32-bit Linux: CmsGoAgent.linux-386
  • 64-bit Linux: CmsGoAgent.linux-amd64
  • 32-bit Windows: CmsGoAgent.windows-386.exe
  • 64-bit Windows: CmsGoAgent.windows-amd64.exe

Ports

  • The CloudMonitor agent accesses TCP port 3128, 8080, or 443 of remote hosts to send heartbeat messages and report monitoring data. The CloudMonitor agent that is installed on an Alibaba Cloud Elastic Compute Service (ECS) instance accesses port 3128 or 8080. The CloudMonitor agent that is installed on a third-party host accesses port 443.
  • The CloudMonitor agent accesses HTTP port 80 of remote hosts to obtain upgrade packages.

Logs

  • The CloudMonitor agent stores monitoring logs in the logs directory.
  • You can modify the cms.log.level parameter in the config/conf.properties file to adjust the log level. If the configuration file does not contain the cms.log.level parameter, you can add the parameter to the configuration file. The CloudMonitor agent supports the following log levels: DEBUG, INFO, WARNING, ERROR, and FATAL.

Resource usage

  • The process of the CloudMonitor agent occupies 10 to 20 MB of memory and 1% to 2% of one CPU core.
  • The size of the installation package is 10 to 15 MB.
  • Logs can occupy up to 40 MB of disk space. When the log size exceeds 40 MB, earlier logs are deleted.
  • The CloudMonitor agent reports monitoring data at an interval of 15 seconds, which occupies about 10 KB/s of network bandwidth.
  • The CloudMonitor agent sends heartbeat messages at an interval of 3 minutes, which occupies about 2 KB/s of network bandwidth.

Installation guide

For more information, see Install the CloudMonitor agent for Go.

Install the CloudMonitor agent on a third-party host

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, click Host Monitoring. The Host Monitoring page appears.
  3. On the Host Monitoring page, click Install on Third-party Host. In the Install CloudMonitor Agent panel, select the type and operating system of the target host and install the CloudMonitor agent as instructed.