homelab-nomad/core/metrics/metrics.tf

28 lines
447 B
Terraform
Raw Normal View History

2022-07-25 22:49:29 +00:00
resource "nomad_job" "exporters" {
hcl2 {
enabled = true
}
jobspec = file("${path.module}/exporters.nomad")
}
resource "nomad_job" "prometheus" {
hcl2 {
enabled = true
}
jobspec = file("${path.module}/prometheus.nomad")
}
resource "nomad_job" "grafana" {
hcl2 {
enabled = true
}
jobspec = templatefile("${path.module}/grafana.nomad", {
2022-11-02 19:32:27 +00:00
module_path = path.module
})
2023-03-24 18:24:36 +00:00
2023-01-07 07:07:33 +00:00
depends_on = [nomad_job.prometheus]
}