forked from Deuxfleurs/infrastructure
Add node-exporter for metrics collection
This commit is contained in:
parent
e806e24fea
commit
c586633613
1 changed files with 25 additions and 0 deletions
25
app/metrics/deploy/metrics.hcl
Normal file
25
app/metrics/deploy/metrics.hcl
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue