diff options
author | Alex Auvolat <alex@adnab.me> | 2022-10-18 10:32:41 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-10-18 10:32:41 +0200 |
commit | 2592dcaa2df5fdcf63ccf25ecbf368781f682e36 (patch) | |
tree | 228d4dd688886c8d0978ad71394b84c1f1b26cbe /cluster | |
parent | 7866a92e16c30a694d563026e15cb44346312405 (diff) | |
download | nixcfg-2592dcaa2df5fdcf63ccf25ecbf368781f682e36.tar.gz nixcfg-2592dcaa2df5fdcf63ccf25ecbf368781f682e36.zip |
Update telemetry on staging as well
Diffstat (limited to 'cluster')
-rw-r--r-- | cluster/staging/app/telemetry/deploy/telemetry.hcl | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/cluster/staging/app/telemetry/deploy/telemetry.hcl b/cluster/staging/app/telemetry/deploy/telemetry.hcl index b141781..18719bc 100644 --- a/cluster/staging/app/telemetry/deploy/telemetry.hcl +++ b/cluster/staging/app/telemetry/deploy/telemetry.hcl @@ -3,7 +3,7 @@ job "telemetry" { type = "service" group "prometheus" { - count = 1 + count = 2 network { port "prometheus" { @@ -11,14 +11,26 @@ job "telemetry" { } } + constraint { + attribute = "${attr.unique.hostname}" + operator = "set_contains_any" + value = "cariacou,carcajou" + } + task "prometheus" { driver = "docker" config { - image = "prom/prometheus:v2.38.0" + image = "prom/prometheus:v2.39.0" network_mode = "host" ports = [ "prometheus" ] + args = [ + "--config.file=/etc/prometheus/prometheus.yml", + "--storage.tsdb.path=/data", + "--storage.tsdb.retention.size=20GB", + ] volumes = [ - "secrets:/etc/prometheus" + "secrets:/etc/prometheus", + "/mnt/ssd/prometheus:/data" ] } @@ -110,7 +122,7 @@ job "telemetry" { task "grafana" { driver = "docker" config { - image = "grafana/grafana:8.4.3" + image = "grafana/grafana:9.2.0" network_mode = "host" ports = [ "grafana" ] volumes = [ |