HashiCorp Cloud Platform
Configure HCP Vault Dedicated metric streaming to DataDog
For details on metrics scope and interpretation, see the HCP Vault Dedicated metrics documentation.
Prerequisites
To configure metrics streaming to Datadog, you will need to have:
A HCP account with the Admin role assigned
An essentials or standard tier HCP Vault Dedicated cluster
Your Datadog region and API key
Enable metrics streaming
Log in to the HCP Portal and navigate to the Vault clusters page.
Click the Vault cluster you wish to enable streaming for and click Metrics.
Click Enable metric 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.
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 Dedicated dashboard, that comes with preset visualization widgets to help make the most of your HCP Vault Dedicated telemetry. You can find the dashboard by searching for HCP Vault Dedicated Overview from the dashboard list.
Example Terraform configuration (optional)
Refer to the Terraform Registry hcp_vault_cluster documentation
for more information.
resource "hcp_vault_cluster" "example" {
cluster_id = "vault-cluster"
hvn_id = hcp_hvn.example.hvn_id
tier = "standard_large"
metrics_config {
datadog_api_key = "actual-api-key"
datadog_region = "region"
}
}
Edit the metrics streaming configuration (optional)
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 (optional)
To disable a metrics streaming integration, from the Metrics page, click on the Manage drop-down, then Disable streaming.