---
title: Charmhub | Deploy MAAS Region Controller using Charmhub - The Open Operator
  Collection
description: Deploy the latest version of MAAS Region Controller on any cloud.
url: https://charmhub.io/maas-region/docs/monitoring-charmed-maas
---

# MAAS Region Controller

[MAAS Maintainers](https://charmhub.io/publisher/maas-maintainers "View all packages from MAAS Maintainers")

* [MAAS Maintainers](https://charmhub.io/publisher/maas-maintainers "View all packages from MAAS Maintainers")

Platform:

26.04

24.04

22.04

edge 0af4e194

```
juju deploy maas-region --channel edge
```

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

---

#### Relevant links

* [Homepage](https://canonical.com/maas)

---

#### Contacts

* [Submit a bug](https://github.com/canonical/maas-charms/issues)

---

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

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

# How to do charm-level tracing

The MAAS region charm supports charm-level tracing out of the box. All you have to do is integrate the MAAS region charm with the [Tempo HA charm](https://discourse.charmhub.io/t/charmed-tempo-ha/15531). This article will show you how.

## [Prerequisites](https://charmhub.io/maas-region/docs/monitoring-charmed-maas#p-30397-prerequisites)

You should have a deployed COS Lite bundle with Tempo HA charm on top of it. See [this guide](https://discourse.charmhub.io/t/tutorial-deploy-tempo-ha-on-top-of-cos-lite/15489) for instructions on setting this up.

## [Integrate MAAS charm with Tempo](https://charmhub.io/maas-region/docs/monitoring-charmed-maas#p-30397-integrate-maas-charm-with-tempo)

Once you have the COS lite model ready, you can quickly integrate Tempo with the MAAS charm.

In the COS lite model, ensure that charmed Tempo is providing an offer over tracing:

```
juju find-offers
```

Search for a line that looks like this:

```
Store           URL              Access  Interfaces
k8s-controller  admin/cos.tempo  admin   tracing:tracing
```

If you don’t see an offer like that, enable it with the following command:

```
juju offer tempo:tracing
```

Now switch to the model where you have charmed MAAS deployed:

```
juju switch maas-controller:maas-model
```

Finally, relate the MAAS and Tempo charms over the tracing interface

```
juju relate maas-region:tracing tempo:tracing
```

## [Visualize traces in Grafana](https://charmhub.io/maas-region/docs/monitoring-charmed-maas#p-30397-visualize-traces-in-grafana)

To view the traces of the MAAS region charm:

* Open Grafana in your browser (see [here](https://github.com/canonical/grafana-k8s-operator?tab=readme-ov-file#web-interface) for detailed instructions)
* Go to the `Explore` tab
* Select the Tempo datasource
* Select the `Search` query type
* Pick `maas-region-charm` as the service
* Query it!

You should now see a list of traces from the charm. You can inspect them by clicking on a trace ID.
Here is a sample screenshot:

---
