Documentation Index
Fetch the curated documentation index at: https://grafana_com_website/llms.txt
Fetch the complete documentation index at: https://grafana_com_website/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: /docs/grafana-cloud/send-data/fleet-management/set-up/infrastructure-as-code/terraform.md (append .md) or send Accept: text/markdown to /docs/grafana-cloud/send-data/fleet-management/set-up/infrastructure-as-code/terraform/. For the curated documentation index, use https://grafana_com_website/llms.txt. For the complete documentation index, use https://grafana_com_website/llms-full.txt.
Terraform and Fleet Management
Provision your collectors and configuration pipelines in Grafana Fleet Management using v3.19.0 or later of the Grafana Terraform provider.
You can preregister new collectors before they are operational, add remote attributes to collectors already registered with the service, and build configuration pipelines to export telemetry.
For example, the following Terraform configuration creates a pipeline called my_pipeline:
resource "grafana_fleet_management_pipeline" "example" {
name = "my_pipeline"
contents = file("config.alloy")
matchers = [
"env=\"PROD\""
]
enabled = true
}Configuration pipelines created with Terraform are identified as such in the Remote configuration tab, where a Source column helps you track the origin of pipelines synced from external sources. To prevent drift, these pipelines can’t be edited from the Fleet Management application.
Next steps
To get started, refer to the guide Manage Fleet Management in Grafana Cloud using Terraform.
Was this page helpful?
Related resources from Grafana Labs


