pez-infra/terraform/grafana/fleet_pipelines.tf
Rasmus "Pez" Wejlgaard e502a92451
Some checks failed
Deploy (on merge) / Discover hosts (push) Has been cancelled
Terraform / Plan (push) Has been cancelled
Deploy (on merge) / Deploy → (push) Has been cancelled
Terraform / Apply (push) Has been cancelled
fix: tracing on caddy services (#104)
2026-05-10 10:18:53 +01:00

31 lines
698 B
HCL

locals {
fleet_pipelines = {
caddy_tracing = {
matchers = ["collector.ID=\"helsinki-a\""]
}
linux_node_linux = {
matchers = ["collector.os=\"linux\""]
}
octopus_exporter = {
matchers = ["collector.ID=\"london-c\""]
}
plex = {
matchers = ["collector.ID=\"london-b\""]
}
caddy_linux = {
matchers = ["collector.ID=\"helsinki-a\""]
}
docker_linux = {
matchers = ["collector.os=\"linux\""]
}
}
}
resource "grafana_fleet_management_pipeline" "this" {
for_each = local.fleet_pipelines
name = each.key
matchers = each.value.matchers
contents = file("${path.module}/fleet_pipelines/${each.key}.alloy")
}