2022-07-25 22:49:29 +00:00
|
|
|
resource "nomad_job" "exporters" {
|
|
|
|
hcl2 {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
|
2023-08-24 19:36:47 +00:00
|
|
|
jobspec = templatefile("${path.module}/exporters.nomad", {
|
|
|
|
use_wesher = var.use_wesher,
|
|
|
|
})
|
2022-07-25 22:49:29 +00:00
|
|
|
}
|
2022-03-03 17:37:49 +00:00
|
|
|
|
|
|
|
resource "nomad_job" "prometheus" {
|
|
|
|
hcl2 {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
|
2023-08-24 19:36:47 +00:00
|
|
|
jobspec = templatefile("${path.module}/prometheus.nomad", {
|
|
|
|
use_wesher = var.use_wesher,
|
|
|
|
})
|
2022-03-03 17:37:49 +00:00
|
|
|
}
|
2022-03-12 18:07:52 +00:00
|
|
|
|
|
|
|
resource "nomad_job" "grafana" {
|
|
|
|
hcl2 {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
|
2022-07-21 22:54:05 +00:00
|
|
|
jobspec = templatefile("${path.module}/grafana.nomad", {
|
2022-11-02 19:32:27 +00:00
|
|
|
module_path = path.module
|
2023-08-24 19:36:47 +00:00
|
|
|
use_wesher = var.use_wesher
|
2022-07-21 22:54:05 +00:00
|
|
|
})
|
2023-03-24 18:24:36 +00:00
|
|
|
|
2023-01-07 07:07:33 +00:00
|
|
|
depends_on = [nomad_job.prometheus]
|
2022-03-12 18:07:52 +00:00
|
|
|
}
|