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

# Vault

[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:

2.0/stable 565

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

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

---

#### Relevant links

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

---

#### Contacts

##### Maintainers

+ [Matrix Channel](https://matrix.to/#/!yAkGlrYcBFYzYRvOlQ:ubuntu.com?via=ubuntu.com&via=matrix.org&via=mozilla.org)

* [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 K8s with Canonical Observability Stack (COS) for metrics, logs, and dashboards.

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

* Juju >= 3.4

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

Create a 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
juju offer cos.grafana:grafana-dashboard
```

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

Switch to the model in which Vault is deployed:

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

Deploy Grafana Agent:

```
juju deploy grafana-agent-k8s
```

Integrate Vault K8s with Grafana Agent:

```
juju integrate vault-k8s:logging grafana-agent-k8s
juju integrate vault-k8s:metrics-endpoint grafana-agent-k8s
juju integrate vault-k8s:grafana-dashboard grafana-agent-k8s
```

Consume the COS offers:

```
juju consume cos.prometheus
juju consume cos.loki
juju consume cos.grafana
```

Integrate Grafana Agent with COS:

```
juju integrate prometheus:receive-remote-write grafana-agent-k8s:send-remote-write
juju integrate loki:logging grafana-agent-k8s:logging-consumer
juju integrate grafana:grafana-dashboard grafana-agent-k8s:grafana-dashboards-provider
```

## [3. Access the Vault dashboard](https://charmhub.io/vault-k8s/docs/h-integrate-with-cos#p-30420-h-3-access-the-vault-dashboard)

Switch to the cos model:

```
juju switch cos
```

Retrieve the Grafana admin password:

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

Log in Grafana, and select the Vault dashboard.

---
