fork of https://github.com/kumina/libvirt_exporter, used to collect metrics used by capsul-flask
libvirt_schema | ||
.gitignore | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md |
libvirtd_exporter
- exposes libvirt stats
- built for capsul (https://capsul.org)
- listens on port 9729
- based on https://github.com/zhangjianweibj/prometheus-libvirt-exporter
hacking
get the project:
git clone git@cyberia.club:services/libvirtd_exporter
cd libvirtd_exporter
repeat the following:
<code>
pkill libvirtd_exporter && go build && ./libvirtd_exporter &
curl localhost:9729/metrics
clean up:
pkill libvirtd_exporter
go clean
deployment
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v
scp libvirtd_exporter cyberian@baikal.cyberia.club:
ssh cyberian@baikal.cyberia.club
sudo -i
mv /home/cyberian/libvirtd_exporter /usr/local/bin/libvirtd_exporter
systemctl restart libvirtd_exporter