GithubHelp home page GithubHelp logo

patrickjahns / libvirt-prometheus-exporter Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 3.0 42 KB

📊prometheus exporter for libvirt written in python

License: MIT License

Python 100.00%
prometheus-exporter prometheus libvirt libvirt-exporter libvirt-prometheus-exporter libvirtd

libvirt-prometheus-exporter's Introduction

libvirt-prometheus-exporter

License GitHub tag

libvirt-prometheus-exporter's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar patrickjahns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

libvirt-prometheus-exporter's Issues

Crashes on missing metrics

I tried running this locally (libvirt 5.6.0), and it failed with:

KeyError: 'cpu.time'

The list of keys available from getAllDomainStats for one running domain is:

[
  "state.state",
  "state.reason",
  "cpu.cache.monitor.count",
  "balloon.current",
  "balloon.maximum",
  "balloon.swap_in",
  "balloon.swap_out",
  "balloon.major_fault",
  "balloon.minor_fault",
  "balloon.unused",
  "balloon.available",
  "balloon.usable",
  "balloon.last-update",
  "balloon.disk_caches",
  "balloon.hugetlb_pgalloc",
  "balloon.hugetlb_pgfail",
  "balloon.rss",
  "vcpu.current",
  "vcpu.maximum",
  "vcpu.0.state",
  "vcpu.0.time",
  "vcpu.0.wait",
  "vcpu.1.state",
  "vcpu.1.time",
  "vcpu.1.wait",
  "net.count",
  "net.0.name",
  "net.0.rx.bytes",
  "net.0.rx.pkts",
  "net.0.rx.errs",
  "net.0.rx.drop",
  "net.0.tx.bytes",
  "net.0.tx.pkts",
  "net.0.tx.errs",
  "net.0.tx.drop",
  "block.count",
  "block.0.name",
  "block.0.path",
  "block.0.rd.reqs",
  "block.0.rd.bytes",
  "block.0.rd.times",
  "block.0.wr.reqs",
  "block.0.wr.bytes",
  "block.0.wr.times",
  "block.0.fl.reqs",
  "block.0.fl.times",
  "block.0.allocation",
  "block.0.capacity",
  "block.0.physical",
  "block.1.name",
  "block.1.path",
  "block.1.rd.reqs",
  "block.1.rd.bytes",
  "block.1.rd.times",
  "block.1.wr.reqs",
  "block.1.wr.bytes",
  "block.1.wr.times",
  "block.1.fl.reqs",
  "block.1.fl.times",
  "block.1.allocation",
  "block.1.capacity",
  "block.1.physical"
]

improve tests

TODO:

  • test creating a new pyinstaller version
  • test on various python versions

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.