Deploying monitor_collector
This section describes how to deploy the monitor_collector cluster monitoring service on the Meta node.
- Obtain the binary file and configuration file from the compilation server (Meta node in this document).
mkdir -p /var/log/3fs mkdir -p /opt/3fs/{bin,etc} rsync -avz meta:/home/3fs/build/bin/monitor_collector_main /opt/3fs/bin/ rsync -avz meta:/home/3fs/configs/monitor_collector_main.toml /opt/3fs/etc/ rsync -avz meta:/home/3fs/deploy/systemd/monitor_collector_main.service /usr/lib/systemd/system - Modify the monitor_collector_main.toml configuration file.
- Open /opt/3fs/etc/monitor_collector_main.toml.
vim /opt/3fs/etc/monitor_collector_main.toml
- Press i to enter the insert mode and modify the configuration file as follows.
... [server.base.groups.listener] filter_list = ['enp1s0f0np0'] # Enter the RDMA NIC name. listen_port = 10000 listen_queue_depth = 4096 rdma_listen_ethernet = true reuse_port = false ... # Find the following configuration and modify it. [server.monitor_collector.reporter.clickhouse] db = '3fs' host = '127.0.0.1' passwd = 'clickhouse123' port = '9123' user = 'default'
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open /opt/3fs/etc/monitor_collector_main.toml.
- Start the monitor_collector service.
systemctl start monitor_collector_main
- Check the status of monitor_collector.
systemctl status monitor_collector_main

- Check the port status.
ss -tuln
Command output:
# Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process # ... # tcp LISTEN 0 4096 192.168.65.10:10000 0.0.0.0:* # ...
- If 192.168.65.10:10000 is displayed, do not configure 127.0.0.1:10000, so as to avoid incorrect port connection from other services.
- If multiple ports 10000 are found, check whether the filter_list configuration item is set in the monitor_collector_main.toml file.
Parent topic: Installing Components and Deploying the Meta Node