observability

Integrate Canonical Observability Stack tracing, metrics, logs, and dashboards into Juju charms.

1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/tonyandrewmeyer/cantrip --skill observability-tonyandrewmeyer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability
Source: https://github.com/tonyandrewmeyer/cantrip/tree/main/src/cantrip/skills/observability
Command: npx skills add https://github.com/tonyandrewmeyer/cantrip --skill observability-tonyandrewmeyer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Observability is essential for understanding charm behavior in production. This skill wires Canonical Observability Stack (COS) into Juju charms, enabling distributed tracing, metrics collection, logs, and dashboards for end-to-end visibility.

Core Features & Use Cases

  • Integrates ops-tracing into charm initialization to capture hook and relation traces.
  • Exposes Prometheus metrics endpoints and enables Prometheus discovery via COS for workload monitoring.
  • Forwards workload logs to Loki and provisions Grafana dashboards for real-time insights.
  • Supports cross-model COS deployments and COS-lite setups for isolated testing.

Quick Start

Enable COS observability in your charm by turning on tracing, metrics, and log forwarding as part of the bootstrapped charm startup.

Frequently Asked Questions about observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add observability to Juju charms with Canonical Observability Stack?

To add observability to Juju charms, wire COS integration by enabling ops-tracing, Prometheus metrics endpoints, log forwarding, and Grafana dashboards during charm startup.

What does integrating COS observability into a Juju charm provide?

Integrating COS observability provides end-to-end visibility into charm behavior in production via distributed tracing, metrics collection, forwarded workload logs, and real-time Grafana dashboards.

Can I use cross-model COS deployments for Juju charm observability?

Yes, cross-model COS deployments are supported for Juju charm observability, alongside COS-lite setups for isolated testing of traces, metrics, and logs.

Do I need to implement ops-tracing to capture hook and relation traces in Juju?

Yes, you need to integrate ops-tracing into charm initialization to capture hook and relation traces when wiring Juju charms into the Canonical Observability Stack.

What is required to expose Prometheus metrics and forward logs via COS in Juju environments?

Exposing Prometheus metrics and forwarding logs via COS in Juju environments requires charms to declare and implement metrics endpoints, log forwarding, and Grafana dashboards.