Install and manage integrations using Terraform
In addition to managing your Grafana integrations via the Connections page in your Grafana Cloud instance, we provide a Terraform resource to manage the integration dashboards and alerts in your Grafana Cloud instance.
Please note: You must still follow the pre-requisites for your integration in order to properly instrument the system to be monitored.
Install an integration
To install an integration:
Find your desired integration in the list of Grafana Cloud integrations.
Follow the instructions to install and configure Grafana Alloy.
Follow the instructions in the Terraform Provider for Grafana documentation to install and configure the provider.
Create a Terraform plan using the grafana_cloud_integration resource to manage the installation of the dashboards and alerts for your integration.
Update an integration
To update an integration:
Find your desired integration in the list of Grafana Cloud integrations.
Check the changelog to see if an Alloy config update is required. If so, update the Alloy config.
Destroy and reapply the Terraform plan for your grafana_cloud_integration resource for dashboards and alerts to be re-applied.
Delete an integration
To delete an integration:
Disable Alloy or remove the requisite integration configuration from your Alloy configuration.
Remove the requisite grafana_cloud_integration resource from your Terraform plan
Apply your Terraform plan to remove the integration from Grafana Cloud.
Was this page helpful?
Related resources from Grafana Labs


