aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cluster/staging/app/telemetry/deploy/telemetry.hcl20
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 = [