forked from Deuxfleurs/infrastructure
25 lines
387 B
HCL
25 lines
387 B
HCL
job "metrics" {
|
|
datacenters = ["dc1"]
|
|
type = "system"
|
|
priority = "100"
|
|
|
|
group "node_exporter" {
|
|
task "node_exporter" {
|
|
driver = "docker"
|
|
|
|
config {
|
|
image = "quay.io/prometheus/node-exporter:latest"
|
|
network_mode = "host"
|
|
volumes = [
|
|
"/:/host:ro,rslave"
|
|
]
|
|
args = [ "--path.rootfs=/host" ]
|
|
}
|
|
|
|
resources {
|
|
cpu = 50
|
|
memory = 40
|
|
}
|
|
}
|
|
}
|
|
}
|