Skip to content

Commit 3706430

Browse files
committed
services/nomad/monitoring: Encourage repo_exporter to sit on root mirror
1 parent 415f38c commit 3706430

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

services/nomad/monitoring/repo_exporter.nomad

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ job "repo-exporter" {
44
datacenters = ["VOID"]
55

66
group "exporter" {
7+
affinity {
8+
# Prefer to sit on the machine hosting the internal mirrors so
9+
# that checks hit localhost.
10+
attribute = "${node.unique.hostname}"
11+
value = "a-hel-fi"
12+
weight = 100
13+
}
14+
715
network {
816
mode = "bridge"
917
port "metrics" {

0 commit comments

Comments
 (0)