This tutorial covers configuration of HCP Vault metrics streaming to and data visualization in your existing Grafana Cloud 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.
To configure metrics streaming to Grafana Cloud, you will need to have:
- Grafana Cloud account
- An account with Admin or Contributor role assigned in HCP
- A production grade HCP Vault cluster
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.
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 Grafana Cloud as the provider.
Under Grafana Cloud configuration, enter your Grafana Cloud Endpoint, Grafana Cloud user, and Grafana Cloud password.
NOTE: At this time, HCP Vault 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.
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.
To disable a metrics streaming integration, from the Metrics page, click on the Manage drop-down, then Disable streaming.