# Observability

## Datadog integration

![Datadog logo]()

Your Evervault resources can be connected to Datadog via the Datadog integration. Datadog compatible log and metrics sync from the selected resources in real time. You can enable the Datadog integration for your team inside of the team settings in the [Evervault dashboard](https://app.evervault.com).

Enabling the Datadog integration presents you with a drawer to enter your API key and the Datadog site to forward your logs to. You can enable and disable the Datadog integration at a per resource level. API keys can be generated in the Datadog dashboard under the **Organization Settings** heading.

Evervault will submit a log to verify the integration. This log can be ignored.

### Logs and metrics

To start syncing logs and metrics from your Evervault resources to Datadog, you need to connect your Datadog account to your Evervault account.

1. Create a [Datadog API key](https://docs.datadoghq.com/account_management/api-app-keys/#client-tokens).
2. Go to the [Evervault Dashboard](https://app.evervault.com) and navigate to your teams settings.
3. Select **Integrations** and enable the Datadog integration.
4. Follow the instructions to connect your Datadog account to your Evervault account.

Logging data will start streaming to Datadog from your selected Relays, Enclaves, and Functions. [Statsd](https://docs.datadoghq.com/developers/dogstatsd/?tab=hostagent) metrics will also be published from Enclaves to Datadog.

### Enclave metrics

The following list of stats will be sent to Datadog if the integration is enabled for an Enclave:

```
evervault.enclaves.cpu.one
evervault.enclaves.cpu.cores
evervault.enclaves.encrypt.count
evervault.enclaves.decrypt.count
evervault.enclaves.memory.avail
evervault.enclaves.memory.total
```

The stats can be queried with `host:<enclave_name>-*` or `enclave_uuid:<enclave_uuid>`.

