From 2592dcaa2df5fdcf63ccf25ecbf368781f682e36 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 18 Oct 2022 10:32:41 +0200 Subject: Update telemetry on staging as well --- cluster/staging/app/telemetry/deploy/telemetry.hcl | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'cluster') 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 = [ -- cgit v1.2.3