---
title: Charmhub | Deploy Content Cache using Charmhub - The Open Operator Collection
description: Deploy the latest version of Content Cache on any cloud.
url: https://charmhub.io/content-cache/docs/enable-cos
---

# Content Cache

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")
* [Monitoring](https://charmhub.io/?filter=monitoring)
* [Networking](https://charmhub.io/?filter=networking)

Platform:

24.04

22.04

20.04

18.04

stable 4b9222c

```
juju deploy content-cache
```

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

---

#### Contacts

##### Maintainers

+ [Content Cache Charmers](mailto:content-cache-charmers@lists.launchpad.net)

* [Submit a bug](https://bugs.launchpad.net/content-cache-charm)

---

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

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

# How to enable COS

The charm utilizes Nginx as a static web content cache.
Various metrics on the requests to the cache are logged.
The logs can be ingested into [Canonical Observability Stack (COS)](https://charmhub.io/topics/canonical-observability-stack) or [COS Lite](https://charmhub.io/topics/canonical-observability-stack/editions/lite) by integrating the charm with a charm that provides `cos-agent` integration.

The [Grafana Agent charm](https://charmhub.io/grafana-agent) provides `cos-agent` integration to machine charms.
If you are new to COS or the Grafana Agent charm it is recommended to first follow [this guide](https://charmhub.io/grafana-agent/docs/using) to understand the concepts of COS and how the charms work together.

With a working Content Cache charm deployment name `cache`, the following will add COS support to it:

```
juju deploy grafana-agent cos-agent
juju integrate cos-agent cache
```

Then the Grafana Agent charm should be integrated with your COS instance.
Once integrated a Grafana dashboard named “Content Cache” should be imported. The metrics of content cache should appear in the dashboard.

---
