/kvm-agent

A service to monitor and report VM/Host metrics.

Primary LanguageGoMIT LicenseMIT

kvm-agent

English中文

A service to monitor and report VM/Host metrics.

Build

Build in local platform with go installed.

make build

Build rpm/deb.

make build-rpm
make build-deb

Run

Install kvm-agent in arm64 platform

  1. Download kvm-agent_0.1.5_linux_arm64.rpm packages in local files.

  2. Install kvm-agent_0.1.5_linux_arm64.rpm.

sudo rpm -i --force kvm-agent-1.0.0.aarch64.rpm
  1. Modify /etc/kvm-agent/kvm-agent.conf to set kvm-agent configuration.
app:
  version: 1.0.0
  debug: true # debug mode
  log_file: /var/log/kvm-agent # log mode

agent:
  uuid: 6e8c2828-5460-49a2-99a9-6ed809ae4d1d # agent uuid
  period: 10 # collect data every 5 seconds
  gzip: true # compress report data

redis:
  ip: 127.0.0.1 # host redis ip
  port: 6379  # host redis port
  password: utyCyszHbhR9w5XX # host redis password
  db: 0 # host redis db

dm:
  ip: 127.0.0.1 # host dm ip
  port: 5236 # host dm port
  username: SYSDBA # host dm username
  password: SYSDBA # host dm password
  1. Start kvm-agent service.
sudo systemctl start kvm-agent
  1. Check kvm-agent service status.
sudo systemctl status kvm-agent
  1. Check kvm-agent log.
sudo journalctl -u kvm-agent