Skip to content

Commit

Permalink
add libvirt exporter readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hungnt1 committed Feb 12, 2022
1 parent 02da340 commit da38ed8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Kolla-ansible/1.1.Monitor-VM-kolla.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
## on compute host
- Monitor openstack VM with prometheus and exporter libvirt


- excute on host OS

- create service
```
sudo useradd -rs /bin/false vm_exporter
sudo vi /etc/systemd/system/vm_exporter.service
Expand All @@ -13,9 +16,10 @@ Description=OpensStack VM Exporter
After=network.target
[Service]
User=vm_exporter
Group=vm_exporter
User=root
Group=root
Type=simple
Restart=always
ExecStart=/usr/local/bin/prometheus-libvirt-exporter --libvirt.uri /var/run/libvirt/libvirt-sock-ro --libvirt.driver qemu:///system --web.listen-address :9777
[Install]
Expand Down

0 comments on commit da38ed8

Please sign in to comment.