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; };