2022-08-25 11:59:40 +00:00
|
|
|
job "telemetry-system" {
|
2023-09-04 17:05:18 +00:00
|
|
|
datacenters = ["neptune", "scorpio", "bespin"]
|
2022-08-25 11:59:40 +00:00
|
|
|
type = "system"
|
|
|
|
priority = "100"
|
|
|
|
|
|
|
|
group "collector" {
|
|
|
|
network {
|
|
|
|
port "node_exporter" { static = 9100 }
|
|
|
|
}
|
|
|
|
|
|
|
|
task "node_exporter" {
|
|
|
|
driver = "docker"
|
|
|
|
|
|
|
|
config {
|
2023-08-06 11:45:46 +00:00
|
|
|
image = "quay.io/prometheus/node-exporter:v1.6.1"
|
2022-08-25 11:59:40 +00:00
|
|
|
network_mode = "host"
|
|
|
|
volumes = [
|
|
|
|
"/:/host:ro,rslave"
|
|
|
|
]
|
|
|
|
args = [ "--path.rootfs=/host" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
cpu = 50
|
|
|
|
memory = 40
|
|
|
|
}
|
|
|
|
|
|
|
|
service {
|
|
|
|
tags = [ "telemetry" ]
|
|
|
|
port = 9100
|
|
|
|
address_mode = "driver"
|
|
|
|
name = "node-exporter"
|
|
|
|
check {
|
|
|
|
type = "http"
|
|
|
|
path = "/"
|
|
|
|
port = 9100
|
|
|
|
address_mode = "driver"
|
|
|
|
interval = "60s"
|
|
|
|
timeout = "5s"
|
|
|
|
check_restart {
|
|
|
|
limit = 3
|
|
|
|
grace = "90s"
|
|
|
|
ignore_warnings = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|