aboutsummaryrefslogtreecommitdiff
path: root/app/metrics/deploy/metrics.hcl
blob: 36f0fbb8e715bdd84c64955350f79cef1c5dc6ca (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
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
			}
		}
	}
}