chore: backup infrastructure configurations [skip ci]

This commit is contained in:
github-actions[bot]
2025-11-25 02:00:43 +00:00
parent 26a7d1eee1
commit 9e6c3bdecd
17 changed files with 338 additions and 24 deletions

View File

@@ -0,0 +1,70 @@
job "node-exporter" {
region = "global"
datacenters = ["dc1"]
type = "system"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "node-exporter" {
count = 1
restart {
attempts = 3
delay = "20s"
mode = "delay"
}
task "node-exporter" {
driver = "docker"
config {
#image = "anzevalher/node-exporter"
image = "prom/node-exporter"
force_pull = true
args = ["--collector.cpu","--collector.filesystem","--collector.meminfo","--collector.thermal_zone","--collector.disable-defaults",]
volumes = [
"/proc:/host/proc",
"/sys:/host/sys",
"/:/rootfs",
]
port_map {
http = 9100
}
}
service {
name = "node-exporter"
tags = [
"metrics",
]
port = "http"
check {
type = "http"
path = "/metrics/"
interval = "10s"
timeout = "2s"
}
}
resources {
cpu = 20
memory = 20
network {
port "http" {
static = "9100"
}
}
}
}
}
}