Skip to main content

Monitor External Hosts

To monitor independent servers outside the Ops Platform deployment node (such as standalone database or cache nodes), install Node Exporter on those servers, and then add each one as a "Host" data source in the UI "Data Sources" page.

Note

HAP/HDP standalone and cluster deployments already include ops-nodeagent (automatically listening on :59100). No action is required. Repeated installation will cause port conflicts. Only additional external hosts need the following steps.

  1. Download and extract (the offline package is in the common/ directory; the version is the same as the one built into the image: 1.8.2):

    wget https://pdpublic.nocoly.com/offline/common/node_exporter-1.8.2.linux-amd64.tar.gz
    tar xvf node_exporter-1.8.2.linux-amd64.tar.gz
    mv node_exporter-1.8.2.linux-amd64 /usr/local/node_exporter
  2. Register the systemd service:

    cat > /etc/systemd/system/node_exporter.service <<'EOF'
    [Unit]
    Description=Node Exporter
    After=network.target

    [Service]
    User=root
    Type=simple
    ExecStart=/usr/local/node_exporter/node_exporter --web.listen-address=:59100
    Restart=always
    RestartSec=3

    [Install]
    WantedBy=multi-user.target
    EOF
  3. Start the service and enable auto-start:

    systemctl daemon-reload
    systemctl enable --now node_exporter
    systemctl status node_exporter
  4. In the UI "Data Sources" page, create a "Host" data source and enter the address, such as 192.168.1.20:59100 (one entry per host). The change takes effect within 30 seconds after saving. You can then view it under "Resource Monitoring → Host" without restarting any container.

    If there are many hosts, use "Batch Import". The hostInstance section in the YAML template is:

    sources:
    - kind: hostInstance
    name: extra-node-01
    address: 192.168.1.20:59100
    purposes: [metrics]