---
title: Charmhub | Deploy Prometheus libvirt exporter using Charmhub - The Open Operator
  Collection
description: Deploy the latest version of Prometheus libvirt exporter on any cloud.
url: https://charmhub.io/prometheus-libvirt-exporter/docs/t-getting-started
---

# Prometheus libvirt exporter

[Llama (LMA) Charmers](https://charmhub.io/publisher/llama-charmers "View all packages from Llama (LMA) Charmers")

* [Llama (LMA) Charmers](https://charmhub.io/publisher/llama-charmers "View all packages from Llama (LMA) Charmers")
* [Monitoring](https://charmhub.io/?filter=monitoring)

Platform:

24.04

22.04

20.04

18.04

16.04

stable a905e10-dirty

```
juju deploy prometheus-libvirt-exporter
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Contacts

* [Submit a bug](https://github.com/canonical/charm-prometheus-libvirt-exporter/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# Getting Started

A typical deployment with nova and libvirt is as follows:

(The metrics will be at <http://nova-compute:9177>)

```
juju deploy nova-compute
juju deploy prometheus-libvirt-exporter
juju add-relation nova-compute prometheus-libvirt-exporter
```

To avail of the metrics in grafana the following steps can be used:

```
juju deploy grafana
juju deploy prometheus2
juju add-relation prometheus-libvirt-exporter:scrape prometheus2:target
juju add-relation prometheus-libvirt-exporter:dashboards grafana:dashboards
```

To setup reporting with nagios:

```
juju deploy nrpe
juju add-relation nova-compute nrpe
juju add-relation prometheus-libvirt-exporter:nrpe-external-master nrpe:nrpe-external-master
```

To change or update dashboards:

```
# The exporter is distributed with a standard dashboard
# To provide your own dashboards, create a zip file and attach it as a resource
zip grafana-dashboards.zip libvirt-simple.json libvirtadvanced.json
juju attach-resource prometheus-libvirt-exporter dashboards=./grafana-dashboards.zip
```

---
