Channel Revision Published Runs on
4/stable 61 22 Apr 2025
Ubuntu 22.04
4/candidate 128 13 Nov 2025
Ubuntu 22.04
4/beta 162 09 Dec 2025
Ubuntu 24.04 Ubuntu 22.04
4/beta 160 09 Dec 2025
Ubuntu 24.04 Ubuntu 22.04
4/edge 339 06 Mar 2026
Ubuntu 24.04 Ubuntu 22.04
4/edge 338 06 Mar 2026
Ubuntu 24.04 Ubuntu 22.04
4/edge 337 06 Mar 2026
Ubuntu 24.04 Ubuntu 22.04
4/edge 336 06 Mar 2026
Ubuntu 24.04 Ubuntu 22.04
juju deploy lego --channel 4/stable
Show information

Platform:

Ubuntu
24.04 22.04

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:

  • Juju >= 3.4

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

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

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.