diff options
Diffstat (limited to 'app/metrics/deploy/metrics.hcl')
-rw-r--r-- | app/metrics/deploy/metrics.hcl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/metrics/deploy/metrics.hcl b/app/metrics/deploy/metrics.hcl new file mode 100644 index 0000000..36f0fbb --- /dev/null +++ b/app/metrics/deploy/metrics.hcl @@ -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:v1.1.2" + network_mode = "host" + volumes = [ + "/:/host:ro,rslave" + ] + args = [ "--path.rootfs=/host" ] + } + + resources { + cpu = 50 + memory = 40 + } + } + } +} |