-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection reset by peer #15
Comments
thanks for your suggestion.I don't quite understand the issue you're asking.could your help us fix this issue or explana the problem more clear. |
I start, stop and migrate VMs via oVirt and scrape metrics via Prometheus. On hosts running few VMs and the prometheus-libvirt-exporter. For tests I compiled the exporter on another Linux machine, pushed it to the hosts and started the exporter in the command line. If I start VM or migrate VM from one to another host everythings works fine. But if I stop one or more VMs via oVirt, the exporter crashes. Error message is: I read some source code and found the line 203 respective 261. Thats go-libvirt functions. Maybe the Regards |
very thanks.I understand what's causing the problem.after section "l.DomainIsActive" result is true,at this moment,vm is staill alive.when program goto "rRdReq, rRdBytes, rWrReq, rWrBytes, _, err = l.DomainBlockStats(*domain, disk.Target.Device)",vm is stoped.and caused error "connection reset by peer".i think if vm is migrated,libvirt return nil result with this domain is Reasonable. |
Works fine when VM migrate to other host, but quit the job when VM shutdown:
failed to get DomainBlockStats: Unable to read from monitor: Connection reset by peer
Its possible to mark domain as 'not running' or similar in line 208?
Regards
The text was updated successfully, but these errors were encountered: