Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.8 KB

fleet_management_pipeline.md

File metadata and controls

61 lines (44 loc) · 1.8 KB
page_title subcategory description
grafana_fleet_management_pipeline Resource - terraform-provider-grafana
Fleet Management
Manages Grafana Fleet Management pipelines. Official documentation https://grafana.com/docs/grafana-cloud/send-data/fleet-management/API documentation https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/pipeline-api/ Required access policy scopes: fleet-management:readfleet-management:write

grafana_fleet_management_pipeline (Resource)

Manages Grafana Fleet Management pipelines.

Required access policy scopes:

  • fleet-management:read
  • fleet-management:write

Example Usage

resource "grafana_fleet_management_pipeline" "test" {
  name     = "my_pipeline"
  contents = file("config.alloy")
  matchers = [
    "collector.os=~\".*\"",
    "env=\"PROD\""
  ]
  enabled = true
}

Schema

Required

  • contents (String) Configuration contents of the pipeline to be used by collectors
  • name (String) Name of the pipeline which is the unique identifier for the pipeline

Optional

  • enabled (Boolean) Whether the pipeline is enabled for collectors
  • matchers (List of String) Used to match against collectors and assign pipelines to them; follows the syntax of Prometheus Alertmanager matchers

Read-Only

  • id (String) Server-assigned ID of the pipeline

Import

Import is supported using the following syntax:

terraform import grafana_fleet_management_pipeline.name "{{ name }}"