---
title: Charmhub | Deploy Prometheus Juju Exporter using Charmhub - The Open Operator
  Collection
description: Deploy the latest version of Prometheus Juju Exporter on any cloud.
url: https://charmhub.io/prometheus-juju-exporter/docs/h-cos
---

# Prometheus Juju Exporter

[Canonical BootStack Charmers](https://charmhub.io/publisher/bootstack-charmers "View all packages from Canonical BootStack Charmers")

* [Canonical BootStack Charmers](https://charmhub.io/publisher/bootstack-charmers "View all packages from Canonical BootStack Charmers")

Platform:

22.04

20.04

18.04

stable 23

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

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

---

#### Relevant links

* [Homepage](https://github.com/canonical/charm-prometheus-juju-exporter)

---

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

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

## [Integrate with COS](https://charmhub.io/prometheus-juju-exporter/docs/h-cos#p-31126-integrate-with-cos)

## [Prerequisites](https://charmhub.io/prometheus-juju-exporter/docs/h-cos#p-31126-prerequisites)

Bootstrap a juju controller on a microk8s cloud. Steps can be found in [this guide](https://juju.is/docs/sdk/dev-setup).

Note: This is a separate controller from the one managing the Prometheus Juju Exporter charm. We plan to build a [cross model integration](https://juju.is/docs/juju/relation#heading--cross-model-relation) here.

## [Deploy COS-Lite](https://charmhub.io/prometheus-juju-exporter/docs/h-cos#p-31126-deploy-cos-lite)

Follow these steps to set up cos-lite on microk8s: [Deploy cos-lite on microk8s](https://charmhub.io/topics/canonical-observability-stack/tutorials/install-microk8s)

Ensure to set up cos-lite with [this offers overlay](https://github.com/canonical/cos-lite-bundle/blob/main/overlays/offers-overlay.yaml) so that the COS model is ready for cross model relations. Relevant section in the above guide [here](https://charmhub.io/topics/canonical-observability-stack/tutorials/install-microk8s#heading--deploy-the-cos-lite-bundle-with-overlays).

## [Relate Prometheus Juju Exporter to COS](https://charmhub.io/prometheus-juju-exporter/docs/h-cos#p-31126-relate-prometheus-juju-exporter-to-cos)

Once the COS-Lite bundle is fully deployed and ready, we can proceed with the integration. Start by returning to the controller and the model that hosts the Prometheus Juju Exporter charm.

```
juju switch other-controller:pje-model
```

COS integration leverages [juju offers](https://juju.is/docs/juju/juju-offer). Verify if these offers are visible.

```
# verify if offers are present
juju find-offers -m microk8s-controller:cos-model
```

Then consume and add cross-model relations.

```
# add cross-model relation
juju consume microk8s-controller:cos-model.prometheus-scrape cos-prometheus-scrape
juju consume microk8s-controller:cos-model.grafana-dashboard cos-grafana-dashboard

# add relations to prometheus-juju-exporter
juju add-relation cos-prometheus-scrape prometheus-juju-exporter:prometheus-k8s-scrape
juju add-relation cos-grafana-dashboard prometheus-juju-exporter:grafana-k8s-dashboard
```

## [Check the dashboard](https://charmhub.io/prometheus-juju-exporter/docs/h-cos#p-31126-check-the-dashboard)

As described in [this section](https://charmhub.io/topics/canonical-observability-stack/tutorials/install-microk8s#heading--browse-dashboards) of the COS docs, you can connect to Prometheus and Grafana, and verify that the metrics and alert rules from Prometheus Juju Exporter are present.

---
