Giter Site home page Giter Site logo

Comments (3)

AlexZzz avatar AlexZzz commented on June 3, 2024

Unfortunately, it's not possible. If you're talking about disk usage as df command output, then it is not a disk usage. It is a filesystem usage, and it's not visible from the outside of a vm.
We're able to add any metric of what you see in virsh command output.

from libvirt-exporter.

gorSign avatar gorSign commented on June 3, 2024

Yes I see.
Is it somehow possible with usage of virt-df command? It shows df output for vms

from libvirt-exporter.

AlexZzz avatar AlexZzz commented on June 3, 2024

Yep, it works, but it uses libguestfs. I don't know how it actually works, but at first glance it looks like read-only mount a filesystem from a virtual machine disk.

Add such functionality to libvirt-exporter means make it dependent on different tools with different context while still focus on libvirt instances and libvirtd daemon. It also overlaps responsibility zones. What I mean: libvirt-exporter works with libvirt and doesn't care what is going on inside the machines, it's not his job. For me it looks like a job for another tool, actually I don't think virt-df is a good thing for production:)

If you are responsible for the operating system inside a virtual machine, then why don't you use node-exporter? If you want dashboards to be integrated with libvirt information (which is a really good way to work with dashboards!), then you can join on libvirt_domain_info_meta by (instance_name). Need some label replacing, but it is a good way:) Is this your case?

If you're not responsible for the VMs itself, then you don't care about filesystem usage.

from libvirt-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.