diff options
author | Alex Auvolat <alex@adnab.me> | 2021-03-08 22:55:55 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-03-08 22:55:55 +0100 |
commit | c5866336131b5f6b042541cd677743c455b6c0b9 (patch) | |
tree | 5748f3d94c5efaa926737b9c91ca6551268e0760 /app/metrics | |
parent | e806e24fead5dc4e264aa92b615fd6eddbd8e7bc (diff) | |
download | infrastructure-c5866336131b5f6b042541cd677743c455b6c0b9.tar.gz infrastructure-c5866336131b5f6b042541cd677743c455b6c0b9.zip |
Add node-exporter for metrics collection
Diffstat (limited to 'app/metrics')
-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..df82b5e --- /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:latest" + network_mode = "host" + volumes = [ + "/:/host:ro,rslave" + ] + args = [ "--path.rootfs=/host" ] + } + + resources { + cpu = 50 + memory = 40 + } + } + } +} |