From f9e17a1479d5c5b9584c17183bfec2c715b28752 Mon Sep 17 00:00:00 2001 From: Bruce Becker Date: Mon, 25 Mar 2024 18:19:50 +0100 Subject: [PATCH] fix(monitoring): change mimir execution script to run after changing perms (#110) chore: bump pre-commit hooks Signed-off-by: Bruce Becker --- monitoring/monitoring.nomad | 43 +++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/monitoring/monitoring.nomad b/monitoring/monitoring.nomad index 8f1aacc..c586552 100644 --- a/monitoring/monitoring.nomad +++ b/monitoring/monitoring.nomad @@ -14,7 +14,7 @@ variable "prom_sha2" { } variable "mimir_version" { - default = "2.9.3" + default = "2.11.0" type = string description = "Version of mimir to use" } @@ -22,8 +22,8 @@ variable "mimir_version" { variable "mimir_sha2" { type = map(string) default = { - arm64 : "e7d2d401f616b185bded25cfe84f7b6543e169f4d0d8a36e19f7ba124848b712" #pragma: allowlist secret - amd64 : "3a1aa0ccb97692989433c9087bfc478e21cc6d879637f19f091a4c13778ce441" #pragma: allowlist secret + arm64 : "1e48254e1038684232ebd945523d6c7839b5f7a66f68e6caeade58cdf1183aa7" #pragma: allowlist secret + amd64 : "cc72ee1fbe411ddf4851a033b278ecdc3294783eee3c1f98c7234e1bddecdb90" #pragma: allowlist secret } description = "See https://github.com/grafana/mimir/releases" } @@ -137,8 +137,12 @@ job "monitoring" { service { name = "prometheus" - tags = ["urlprefix-/prometheus"] port = "prometheus_ui" + tags = [ + "traefik.enable=true", + "traefik.http.routers.http.rule=Path(`/prometheus`)" + ] + check { name = "prometheus_readiness check" @@ -207,7 +211,8 @@ job "monitoring" { } artifact { source = "https://github.com/grafana/mimir/releases/download/mimir-${var.mimir_version}/mimir-linux-amd64" - destination = "local" + destination = "local/mimir-linux" + mode = "file" // options { // checksum = "sha256:${var.mimir_sha2}" @@ -224,10 +229,21 @@ job "monitoring" { } } + template { + data = <