aboutsummaryrefslogtreecommitdiff
path: root/cluster/staging/app/telemetry/deploy/telemetry-system.hcl
blob: 7cbb01a957acc07c75bd1356f492b1f0283e5f43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
job "telemetry-system" {
  datacenters = ["neptune"]
  type = "system"
  priority = "100"

  group "collector" {
    network {
      port "node_exporter" { static = 9100 }
    }

    task "node_exporter" {
      driver = "nix2"

      config {
        packages = [ "#prometheus-node-exporter" ]
        command = "node_exporter"
        args = [ "--path.rootfs=/host" ]
        bind_read_only = {
          "/" = "/host"
        }
      }

      resources {
        cpu = 50
        memory = 40
      }

      service {
        name = "node-exporter"
        tags = [ "telemetry" ]
        port = "node_exporter"
        check {
          type = "http"
          path = "/"
          interval = "60s"
          timeout = "5s"
          check_restart {
            limit = 3
            grace = "90s"
            ignore_warnings = false
          }
        }
      }
    }
  }
}