aboutsummaryrefslogtreecommitdiff
path: root/app/telemetry/deploy/telemetry-system.hcl
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-26 22:06:37 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-26 22:06:37 +0100
commit465e2627261c504279553cb4426abf30d518dc47 (patch)
tree4d0502d55b81b0bdc56083f90711e48492020b91 /app/telemetry/deploy/telemetry-system.hcl
parent41a65b803217d7a3ebdaa5029d58a5cac4ce63da (diff)
downloadnixcfg-465e2627261c504279553cb4426abf30d518dc47.tar.gz
nixcfg-465e2627261c504279553cb4426abf30d518dc47.zip
Add node_exporter to telemetry pipeline
Diffstat (limited to 'app/telemetry/deploy/telemetry-system.hcl')
-rw-r--r--app/telemetry/deploy/telemetry-system.hcl21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/telemetry/deploy/telemetry-system.hcl b/app/telemetry/deploy/telemetry-system.hcl
index 82103bd..c9b11b1 100644
--- a/app/telemetry/deploy/telemetry-system.hcl
+++ b/app/telemetry/deploy/telemetry-system.hcl
@@ -66,6 +66,9 @@ EOH
port "apm" {
static = 8200
}
+ port "node_exporter" {
+ static = 9100
+ }
}
task "otel" {
@@ -115,6 +118,24 @@ EOH
cpu = 100
}
}
+
+ task "node_exporter" {
+ driver = "docker"
+ config {
+ image = "quay.io/prometheus/node-exporter:v1.1.2"
+ network_mode = "host"
+ ports = [ "node_exporter" ]
+ volumes = [
+ "/:/host:ro,rslave"
+ ]
+ args = [ "--path.rootfs=/host" ]
+ }
+
+ resources {
+ cpu = 50
+ memory = 40
+ }
+ }
}
}