From a813ea6561337aa2265ffaebe72cbdb754ff16d9 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 6 Apr 2023 13:56:52 +0200 Subject: [PATCH] Enable gitlab runner monitoring --- gitlab-runner.nix | 4 ++-- monitoring.nix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gitlab-runner.nix b/gitlab-runner.nix index 5aec124..a0f45a1 100644 --- a/gitlab-runner.nix +++ b/gitlab-runner.nix @@ -40,8 +40,8 @@ systemd.services.gitlab-runner.serviceConfig.DynamicUser = lib.mkForce false; systemd.services.gitlab-runner.serviceConfig.User = "gitlab-runner"; systemd.services.gitlab-runner.serviceConfig.Group = "gitlab-runner"; - #systemd.services.gitlab-runner.serviceConfig.ExecStart = lib.mkForce - # ''${pkgs.gitlab-runner}/bin/gitlab-runner --debug run --config ''${HOME}/.gitlab-runner/config.toml --working-directory ''${HOME}''; + systemd.services.gitlab-runner.serviceConfig.ExecStart = lib.mkForce + ''${pkgs.gitlab-runner}/bin/gitlab-runner --debug run --config ''${HOME}/.gitlab-runner/config.toml --listen-address "127.0.0.1:9252" --working-directory ''${HOME}''; # TODO https://docs.gitlab.com/runner/configuration/proxy.html #systemd.services.docker.environment = { diff --git a/monitoring.nix b/monitoring.nix index 67a8615..c2644eb 100644 --- a/monitoring.nix +++ b/monitoring.nix @@ -42,6 +42,7 @@ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" "127.0.0.1:${toString config.services.prometheus.exporters.ipmi.port}" "127.0.0.1:9323" + "127.0.0.1:9252" ]; }]; }