HashiCorp Cloud Platform
Configure HCP Vault Dedicated metric streaming to Grafana Cloud
For details on metrics scope and interpretation, see the HCP Vault Dedicated metrics documentation.
Availability
HCP Vault Dedicated metrics streaming is available for all production grade clusters. The feature is not available for Development tier clusters.
Prerequisites
To configure metrics streaming to Grafana Cloud, you will need to have:
- A HCP account with the Admin role assigned 
- An essentials or standard tier HCP Vault Dedicated cluster 
- Grafana Cloud account - Note - If you do not have a cluster running, refer to the Create a Vault Cluster on HCP or the Deploy HCP Vault Dedicated with Terraform tutorial to create an HCP Vault Dedicated cluster. 
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 Grafana Cloud as the provider and click Next. 
- Under Grafana Cloud configuration, enter your Grafana Cloud Endpoint, Grafana Cloud user, and Grafana Cloud password. 
- Click Save. - Note - At this time, HCP Vault Dedicated only supports metrics streaming to one metrics endpoint at a time. 
- To expedite monitoring configuration, HashiCorp has created a sample HCP Vault Grafana dashboard template for metrics visualizations. If you prefer to use the sample dashboard template, follow the Grafana Cloud instructions for adding a Grafana dashboard template to your Grafana Cloud environment. 
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 {
    grafana_user = "actual-user"
    grafana_password = "actual-password"
    grafana_endpoint = "actual-url"
  }
}
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.