Skip to content

nieltg/lxd_exporter

Repository files navigation

lxd_exporter

Build Status Go Report Card Coverage Status

LXD metrics exporter for Prometheus. Improved version of viveksing/lxdexporter_golang.

Usage

Download latest precompiled binary of this exporter from the release page.

Extract archive, then run the exporter:

./lxd_exporter

The exporter must have access to LXD socket which can be guided by:

  • Specifying LXD_SOCKET environment variable to LXD socket path, or
  • Specifying LXD_DIR environment variable to LXD socket's parent directory.

For more information, you can see the documentation from Go LXD client library.

Hacking

Install Go before hacking this library.

To run all tests:

go test ./...

To build exporter binary:

mkdir build
go build -o build ./...

Binary will be available on build/ directory.

License

MIT.

About

Prometheus exporter for LXD container management.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages