<a id="reference-integrations"></a>

# Integrations

<!-- vale Canonical.007-Headings-sentence-case = NO -->

## WireGuard router integration

<!-- vale Canonical.007-Headings-sentence-case = YES -->

*Interface*: `wireguard-router-a`
*Supported charms*: WireGuard gateway charms

The WireGuard gateway charm uses the `wireguard-router-a` relation to integrate with another WireGuard gateway charm for network peering. The `wireguard-router-a` and `wireguard-router-b` relations are equivalent.

Example `wireguard-router-a` integrate command:

```default
juju integrate wireguard-gateway-a:wireguard-router-a wireguard-gateway-b:wireguard-router-b
```

*Interface*: `wireguard-router-b`
*Supported charms*: WireGuard gateway charms

The WireGuard gateway charm uses the `wireguard-router-b` relation to integrate with another WireGuard gateway charm for network peering. The `wireguard-router-a` and `wireguard-router-b` relations are equivalent.

Example `wireguard-router-b` integrate command:

```default
juju integrate wireguard-gateway-b:wireguard-router-b wireguard-gateway-a:wireguard-router-a
```

## COS agent integration

*Interface*: `cos-agent`
*Supported charms*: [OpenTelemetry collector charm](https://charmhub.io/opentelemetry-collector), [Grafana agent charm](https://charmhub.io/grafana-agent)

The WireGuard gateway charm uses the `cos-agent` relation to integrate with COS agent subordinate charms like the OpenTelemetry collector charm to provide COS integration, which provides you metrics, logs, and dashboards.

Example `cos-agent` integrate command:

```default
juju integrate wireguard-gateway:cos-agent opentelemetry-collector
```
