Configure HCP Vault Metrics Streaming to Datadog
This tutorial covers configuration of HCP Vault metrics streaming to and data visualization in your existing Datadog environment. For details on metrics scope and interpretation, see the HCP Vault Metrics Guidance.
Availability
HCP Vault metrics streaming is available for all production grade clusters. The feature is not available for Development tier clusters.
Prerequisites
To configure metrics streaming to Datadog, you will need to have:
- Your Datadog region and API key
- An account with Admin or Contributor role assigned in HCP
- A production grade HCP Vault cluster
Note
If you don't have a cluster running, refer to the Create a Vault Cluster on HCP tutorial to create an HCP Vault cluster through HCP Portal. Or, refer to the Deploy HCP Vault with Terraform tutorial to provision an HCP Vault cluster using Terraform.
Enable metrics streaming
From the HCP Vault cluster Overview page, select the Metrics view.
If you have not configured metrics streaming before, click Enable streaming.
From the Stream Vault metrics view, select Datadog as the provider and click Next.
Under Datadog configuration, enter your API Key and select the Datadog site region that matches your existing Datadog environment.
Click Save.
Note
At this time, HCP Vault only supports metrics streaming to one metrics endpoint at a time.
Once the metrics have been enabled, navigate to Datadog, and enable the integration by clicking Install on the integration tile. This will install a sample HCP Vault dashboard, that comes with preset visualization widgets to help make the most of your HCP Vault telemetry. You can find the dashboard by searching for HCP Vault Overview from the dashboard list.
Edit the metrics streaming configuration
To edit a metrics streaming integration, perform the following steps.
From the Metrics page, click on the Manage drop-down, then Edit configuration.
Edit the configuration, then click Save.
Disable metrics streaming
To disable a metrics streaming integration, from the Metrics page, click on the Manage drop-down, then Disable streaming.