A service to monitor and report VM/Host metrics.
Build in local platform with go
installed.
make build
Build rpm/deb.
make build-rpm
make build-deb
-
Download
kvm-agent_0.1.5_linux_arm64.rpm
packages in local files. -
Install
kvm-agent_0.1.5_linux_arm64.rpm
.
sudo rpm -i --force kvm-agent-1.0.0.aarch64.rpm
- Modify
/etc/kvm-agent/kvm-agent.conf
to setkvm-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
- Start
kvm-agent
service.
sudo systemctl start kvm-agent
- Check
kvm-agent
service status.
sudo systemctl status kvm-agent
- Check
kvm-agent
log.
sudo journalctl -u kvm-agent