libvirt_exporter_improved

command module
v0.0.0-...-ad30d65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Prometheus libvirt exporter

Project forked from https://github.com/kumina/libvirt_exporter and substantially rewritten. Implemented support for several additional metrics, ceph rbd (and network block devices), ovs. Implemented statistics collection using GetAllDomainStats

Running exporter

docker run -ti -p 9177:9177 -v /run/libvirt/libvirt-sock-ro:/var/run/libvirt/libvirt-sock-ro:ro bykva/libvirt-exporter:1.0

other info

This repository provides code for a Prometheus metrics exporter for libvirt. This exporter connects to any libvirt daemon and exports per-domain metrics related to CPU, memory, disk and network usage. By default, this exporter listens on TCP port 9177.

This exporter makes use of libvirt-go, the official Go bindings for libvirt. This exporter make use of the GetAllDomainStats()

The following metrics/labels are being exported:

libvirt_domain_info_maximum_memory_bytes{domain="..."}
libvirt_domain_info_memory_usage_bytes{domain="..."}
libvirt_domain_info_virtual_cpus{domain="..."}
libvirt_domain_info_cpu_time_seconds_total{domain="..."}
libvirt_domain_info_vstate{domain="..."}

libvirt_domain_block_stats_read_bytes_total{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_read_requests_total{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_read_time_total{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_write_bytes_total{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_write_requests_total{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_write_time_total{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_flush_requests_total{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_flush_total{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_allocation{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_capacity{domain="...",source_file="...",target_device="..."}
libvirt_domain_block_stats_physicalsize{domain="...",source_file="...",target_device="..."}

libvirt_domain_interface_stats_receive_bytes_total{domain="...",source_bridge="...",target_device="...", virtualportinterfaceid="..."}
libvirt_domain_interface_stats_receive_packets_total{domain="...",source_bridge="...",target_device="...", virtualportinterfaceid="..."}
libvirt_domain_interface_stats_receive_errors_total{domain="...",source_bridge="...",target_device="...", virtualportinterfaceid="..."}
libvirt_domain_interface_stats_receive_drops_total{domain="...",source_bridge="...",target_device="...", virtualportinterfaceid="..."}
libvirt_domain_interface_stats_transmit_bytes_total{domain="...",source_bridge="...",target_device="...", virtualportinterfaceid="..."}
libvirt_domain_interface_stats_transmit_packets_total{domain="...",source_bridge="...",target_device="...", virtualportinterfaceid="..."}
libvirt_domain_interface_stats_transmit_errors_total{domain="...",source_bridge="...",target_device="...", virtualportinterfaceid="..."}
libvirt_domain_interface_stats_transmit_drops_total{domain="...",source_bridge="...",target_device="...", virtualportinterfaceid="..."}

libvirt_domain_memory_stats_major_fault{domain="..."}
libvirt_domain_memory_stats_minor_fault{domain="..."}
libvirt_domain_memory_stats_unused{domain="..."}
libvirt_domain_memory_stats_available{domain="..."}
libvirt_domain_memory_stats_actual_balloon{domain="..."}
libvirt_domain_memory_stats_rss{domain="..."}
libvirt_domain_memory_stats_usable{domain="..."}
libvirt_domain_memory_stats_disk_cache{domain="..."}
libvirt_domain_memory_stats_used_percent{domain="..."}

libvirt_up

Repository contains a shell script, build_static.sh, that builds a statically linked copy of this exporter in an Alpine Linux based container.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址