forked from void-linux/void-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepo_exporter.nomad
More file actions
45 lines (39 loc) · 770 Bytes
/
repo_exporter.nomad
File metadata and controls
45 lines (39 loc) · 770 Bytes
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
job "repo-exporter" {
type = "service"
namespace = "monitoring"
datacenters = ["VOID"]
affinity {
attribute = "${meta.builder}"
value = "true"
weight = -100
}
group "exporter" {
network {
mode = "bridge"
port "metrics" {
to = 1234
static = 9213
}
}
service {
port = "metrics"
check {
type = "http"
port = "metrics"
path = "/"
address_mode = "host"
interval = "30s"
timeout = "2s"
}
}
task "exporter" {
driver = "docker"
config {
image = "ghcr.io/void-linux/repo-exporter:v0.1.2"
}
resources {
memory = 1000
}
}
}
}