prometheus libvirt exporter #0

Supports: xenial bionic
Add to new model

Description

Exporting prometheus metrics from Libvirt with Openstack metadata.


Prometheus Libvirt Exporter Charm

Reactive subordinate Juju charm providing prometheus-libvirt-exporter. Exporter uses Openstack metadata and passes these metadata linked to Libvirt usage metrics.

Overview

Juju charm can relate to prometheus using a preferred endpoint target or alternatively manual-jobs.
Preferred endpoint assures that all units are in the same group, while manual jobs get unique names by prometheus.

Bundle example

Charm is deployed with as a subordinate to nova-compute such as in example bundle.

series: xenial
applications:
  prometheus:
    charm: cs:bionic/prometheus2-12
    num_units: 1
  libvirt-exporter:
    charm: /tmp/charm-builds/prometheus-libvirt-exporter
    options:
      debug: true
  ubuntu:
    charm: cs:ubuntu
    num_units: 2
relations:
- - libvirt-exporter:prometheus-target
  - prometheus:target
- - ubuntu:juju-info
  - libvirt-exporter:nova-compute

Scale out Usage

Subordinate charm scales with nova-compute (deployed to each node).


Configuration

debug
(boolean) Debug logging for exporter.
host
(string) IP on which the port is open. If none use unit_private_ip. "0.0.0.0" for all interfaces.
none
port
(int) Port to bind http exporter.
9121