aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/telemetry/deploy/telemetry-system.hcl
blob: 76fad83fd87ba813dac0b7044473a29ea9e4b555 (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
47
48
49
job "telemetry-system" {
	datacenters = ["neptune", "scorpio", "bespin", "corrin"]
	type = "system"
	priority = "100"

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

		task "node_exporter" {
			driver = "docker"

			config {
				image = "quay.io/prometheus/node-exporter:v1.7.0"
				network_mode = "host"
				volumes = [
					"/:/host:ro,rslave"
				]
				args = [ "--path.rootfs=/host" ]
			}

			resources {
				cpu = 50
				memory = 40
			}

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