---
title: Charmhub | Deploy Vault using Charmhub - The Open Operator Collection
description: Deploy the latest version of Vault on any cloud.
url: https://charmhub.io/vault/docs/h-integrate-with-cos
---

# Vault

[Vault charmers](https://charmhub.io/publisher/vault-charmers "View all packages from Vault charmers")

* [Vault charmers](https://charmhub.io/publisher/vault-charmers "View all packages from Vault charmers")
* [Security](https://charmhub.io/?filter=security)

Platform:

24.04

23.10

23.04

22.10

22.04

20.04

18.04

2.0/stable 710

```
juju deploy vault --channel 2.0/stable
```

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

---

#### Relevant links

* [Homepage](https://charmhub.io/vault)

---

#### Contacts

* [Submit a bug](https://github.com/canonical/vault-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 Vault with Canonical Observability Stack (COS) for metrics and logs.

### [Pre-requisites:](https://charmhub.io/vault/docs/h-integrate-with-cos#p-30744-pre-requisites)

* Juju >= 3.4

## [1. Deploy COS Lite](https://charmhub.io/vault/docs/h-integrate-with-cos#p-30744-h-1-deploy-cos-lite)

Create a Kubernetes model for observability:

```
juju add-model cos
```

Deploy cos lite and wait for all applications to be in active status:

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

Create offers for integrating with COS:

```
juju offer cos.prometheus:receive-remote-write
juju offer cos.loki:logging
```

## [2. Integrate with COS](https://charmhub.io/vault/docs/h-integrate-with-cos#p-30744-h-2-integrate-with-cos)

Switch to the machine model in which Vault is deployed:

```
juju switch <vault model>
```

Deploy Grafana Agent:

```
juju deploy grafana-agent
```

Integrate Vault with Grafana Agent:

```
juju integrate vault:cos-agent grafana-agent:cos-agent
```

Consume the COS offers:

```
juju consume <k8s controller>:admin/cos.prometheus
juju consume <k8s controller>:admin/cos.loki
```

Integrate Grafana Agent with COS:

```
juju integrate prometheus:receive-remote-write grafana-agent:send-remote-write
juju integrate loki:logging grafana-agent:logging-consumer
```

## [3. Access Vault metrics and logs](https://charmhub.io/vault/docs/h-integrate-with-cos#p-30744-h-3-access-vault-metrics-and-logs)

Switch to the cos model:

```
juju switch cos
```

Retrieve the Grafana admin password:

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

Log in Grafana, and access metrics and logs.

---
