From 2544adba8e41000ce405187d1aa22860e14d7420 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 24 Aug 2024 08:45:20 +0200 Subject: [PATCH] fix(gerrit): setup Alloy & Pyroscope more according to the docs Still not working due to "unimplemented: error 404 not found" at push time, but it's really unclear now why this occur. Signed-off-by: Raito Bezarius --- services/gerrit/default.nix | 2 +- services/monitoring/pyroscope/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/gerrit/default.nix b/services/gerrit/default.nix index bea5e08..2075de5 100644 --- a/services/gerrit/default.nix +++ b/services/gerrit/default.nix @@ -79,7 +79,7 @@ in url = "https://pyroscope.forkos.org" basic_auth { username = "promtail" - password_file = "/run/credentials/password" + password_file = "/run/credentials/alloy.service/password" } } } diff --git a/services/monitoring/pyroscope/default.nix b/services/monitoring/pyroscope/default.nix index 84aa40d..3521fc4 100644 --- a/services/monitoring/pyroscope/default.nix +++ b/services/monitoring/pyroscope/default.nix @@ -25,7 +25,7 @@ in virtualHosts."pyroscope.forkos.org" = { enableACME = true; forceSSL = true; - locations."/api/v1/push" = { + locations."/ingest" = { proxyPass = "http://pyroscope"; basicAuthFile = config.age.secrets.metrics-push-htpasswd.path; };