aboutsummaryrefslogtreecommitdiff
path: root/app/metrics/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'app/metrics/deploy')
-rw-r--r--app/metrics/deploy/metrics.hcl25
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
+ }
+ }
+ }
+}