Introduction to the CloudMonitor agent for Go

更新时间:
复制 MD 格式

CloudMonitor provides host monitoring by installing an agent on your server.

Important The CloudMonitor agent for Go is no longer maintained. Use the C++ version instead. For more information, see Install and uninstall the CloudMonitor agent.

Installation locations

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

Process information

After you install the plugin, the following processes run on your server:

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

Port descriptions

  • The agent uses the TCP protocol to access remote servers on port 3128, 8080, or 443 for heartbeat connections and to report monitoring data. Alibaba Cloud hosts use port 3128 or 8080. Non-Alibaba Cloud hosts use port 443.
  • The agent uses the HTTP protocol to access remote servers on port 80 for agent upgrades.

Plugin logs

  • Monitoring data logs are stored in the logs folder.
  • You can adjust the log level by modifying the cms.log.level configuration in the config/conf.properties file. If this key does not exist in the file, you can create it manually. The CloudMonitor agent for Go supports the following log levels: DEBUG, INFO, WARNING, ERROR, and FATAL.

Resource usage

  • The agent process uses about 10 MB to 20 MB of memory and 1% to 2% of a single-core CPU.
  • The installation package is 10 MB to 15 MB in size.
  • Logs use a maximum of 40 MB of space. If the log size exceeds 40 MB, the logs are purged.
  • The agent sends monitoring data every 15 seconds. This uses about 10 KB of internal network bandwidth.
  • The agent sends heartbeat data every 3 minutes. This uses about 2 KB of internal network bandwidth.

Installation instructions

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

Installation method for non-Alibaba Cloud hosts

  1. Log on to the CloudMonitor console.
  2. In the navigation pane on the left, click Host Monitoring to go to the Host Monitoring page.
  3. At the top of the page, click the Install on Non-Alibaba Cloud Host button to go to the Installation Guide page. Select the monitoring type and operating system to view the installation method.