---
title: Charmhub | Deploy Namecheap LEGO Operator (K8s) using Charmhub - The Open Operator
  Collection
description: Deploy the latest version of Namecheap LEGO Operator (K8s) as a Kubernetes
  Operator on any cloud.
url: https://charmhub.io/namecheap-lego-k8s/docs/h-how-to-integrate-with-cos
---

# Namecheap LEGO Operator (K8s)

[Canonical Telco](https://charmhub.io/publisher/telco-charmers "View all packages from Canonical Telco")

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

Platform:

stable 87

```
juju deploy namecheap-lego-k8s
```

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

---

#### Relevant links

* [Homepage](https://charmhub.io/namecheap-lego-k8s)

---

#### Contacts

* [Submit a bug](https://github.com/canonical/namecheap-lego-k8s-operator/issues)

---

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

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

# Integrate with COS

In this guide, we will cover how-to integrate the LEGO charm with Canonical Observability Stack (COS) for Logging. Here we assume that LEGO is deployed in a Kubernetes model.

### [Pre-requisites:](https://charmhub.io/namecheap-lego-k8s/docs/h-how-to-integrate-with-cos#p-30423-pre-requisites)

* Juju >= 3.4

## [1. Deploy COS Lite](https://charmhub.io/namecheap-lego-k8s/docs/h-how-to-integrate-with-cos#p-30423-h-1-deploy-cos-lite)

Create a model for observability:

```
juju add-model cos
```

Deploy cos lite:

```
juju deploy cos-lite --trust
```

Create an offer for the logging interface:

```
juju offer cos.loki:logging
```

## [2. Integrate with COS](https://charmhub.io/namecheap-lego-k8s/docs/h-how-to-integrate-with-cos#p-30423-h-2-integrate-with-cos)

Switch to the model in which the LEGO charm is deployed:

```
juju switch <your lego model>
```

Consume the COS offers:

```
juju consume cos.loki
```

Integrate the LEGO charm with Loki:

```
juju integrate <lego charm>:logging loki:logging
```

## [4. Access Logs](https://charmhub.io/namecheap-lego-k8s/docs/h-how-to-integrate-with-cos#p-30423-h-4-access-logs)

Switch to the cos model:

```
juju switch cos
```

Retrieve the Grafana admin password:

```
juju switch cos
juju run grafana/leader get-admin-password
```

Log in Grafana’s dashboard, navigate to “Explore” and select Loki as the source.

---
