mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-07-04 15:46:16 +00:00
Update fleet_pipelines.tf
This commit is contained in:
parent
d88d2e5d12
commit
51efda6053
1 changed files with 24 additions and 26 deletions
|
|
@ -1,29 +1,27 @@
|
|||
resource "grafana_fleet_management_pipeline" "linux_node_linux" {
|
||||
name = "linux_node_linux"
|
||||
matchers = ["collector.os=\"linux\""]
|
||||
contents = file("${path.module}/fleet_pipelines/linux_node_linux.alloy")
|
||||
locals {
|
||||
fleet_pipelines = {
|
||||
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" "octopus_exporter" {
|
||||
name = "octopus_exporter"
|
||||
matchers = ["collector.ID=\"london-c\""]
|
||||
contents = file("${path.module}/fleet_pipelines/octopus_exporter.alloy")
|
||||
}
|
||||
resource "grafana_fleet_management_pipeline" "this" {
|
||||
for_each = local.fleet_pipelines
|
||||
|
||||
resource "grafana_fleet_management_pipeline" "plex" {
|
||||
name = "plex"
|
||||
matchers = ["collector.ID=\"london-b\""]
|
||||
contents = file("${path.module}/fleet_pipelines/plex.alloy")
|
||||
}
|
||||
|
||||
resource "grafana_fleet_management_pipeline" "caddy_linux" {
|
||||
name = "caddy_linux"
|
||||
matchers = ["collector.ID=\"helsinki-a\""]
|
||||
contents = file("${path.module}/fleet_pipelines/caddy_linux.alloy")
|
||||
}
|
||||
|
||||
resource "grafana_fleet_management_pipeline" "docker_linux" {
|
||||
name = "docker_linux"
|
||||
matchers = ["collector.os=\"linux\""]
|
||||
contents = file("${path.module}/fleet_pipelines/docker_linux.alloy")
|
||||
}
|
||||
name = each.key
|
||||
matchers = each.value.matchers
|
||||
contents = file("${path.module}/fleet_pipelines/${each.key}.alloy")
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue