Skip to content
Prometheus exporter for Xen using xenlight library
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jun 27, 2019
main.go Add collectors and main elements Jun 27, 2019
phys_collector.go Switch to official repository instead of github mirror Jul 22, 2019
version_collector.go Switch to official repository instead of github mirror Jul 22, 2019

Xenlight Exporter

Prometheus exporter for xen using libxl go bindings.


You can build the latest version using Go v1.11+ via go get:

go get -u

You need xen headers as well as yajl headers to be able to compile xenlight go bindings


usage: xenlight_exporter [<flags>]

  -h, --help                Show context-sensitive help (also try --help-long and --help-man).
                            Enable the collection of per-vcpu time
      --collector.domain    Enable the domain collector (default: enabled).
      --collector.physical  Enable the physical collector (default: enabled).
      --collector.version   Enable the version collector (default: enabled).
                            Address on which to expose metrics and web interface.
                            Path under which to expose metrics.
      --log.level="info"    Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]
                            Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true"
      --version             Show application version.

Notes about golang bindings of libxl

The Go bindings are expected to be imported (according to Xen makefiles) using the following import path: However the domain doesn't exists (thus not allowing the use of Go modules) so I chose to import the bindings from their official repository.

Would the situation evolve and the Xen project provide an universally usable import path, I will reconsider this choice and switch to its official import path.

You can’t perform that action at this time.