Vault

Channel Revision Published Runs on
latest/edge 222 20 Jan 2024
Ubuntu 23.10
1.8/stable 209 05 Jan 2024
Ubuntu 22.04
1.8/edge 164 09 Aug 2023
Ubuntu 23.04
1.15/beta 276 18 Apr 2024
Ubuntu 22.04
1.15/edge 290 09 May 2024
Ubuntu 22.04
1.7/stable 210 10 Jan 2024
Ubuntu 22.04 Ubuntu 20.04
1.6/stable 289 05 May 2024
Ubuntu 20.04 Ubuntu 18.04
1.5/stable 268 11 Apr 2024
Ubuntu 20.04 Ubuntu 18.04
juju deploy vault --channel 1.15/beta
Show information

Platform:

Ubuntu
22.04

Integrate with COS

In this guide, we will cover how-to integrate Vault with Canonical Observability Stack (COS) for metrics and logs.

Pre-requisites:

  • Juju >= 3.4

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

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

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.