From dc87ef4a89979f6e6b1a2615efce4b4412eb6458 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Wed, 30 Oct 2024 16:58:15 +0700 Subject: [PATCH] mimir: port moved to 9009 --- system/services/telemetry/alloy.nix | 7 +++++++ system/services/telemetry/mimir.nix | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/system/services/telemetry/alloy.nix b/system/services/telemetry/alloy.nix index bd4fc2d..970e42c 100644 --- a/system/services/telemetry/alloy.nix +++ b/system/services/telemetry/alloy.nix @@ -175,6 +175,13 @@ in forward_to = [prometheus.remote_write.mimir.receiver] } + prometheus.exporter.self "alloy" {} + + prometheus.scrape "alloy" { + targets = prometheus.exporter.self.alloy.targets + forward_to = [prometheus.remote_write.mimir.receiver] + } + prometheus.scrape "caddy" { targets = [{ __address__ = "localhost:2019", diff --git a/system/services/telemetry/mimir.nix b/system/services/telemetry/mimir.nix index 059e579..76dc1fd 100644 --- a/system/services/telemetry/mimir.nix +++ b/system/services/telemetry/mimir.nix @@ -28,7 +28,7 @@ in multitenancy_enabled = false; server = { http_listen_address = "0.0.0.0"; - http_listen_port = 4400; + http_listen_port = 9009; grpc_listen_port = 4401; };