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