Enable gitlab runner monitoring

This commit is contained in:
Rodrigo Arias 2023-04-06 13:56:52 +02:00
parent 5d8b4e96b2
commit a813ea6561
2 changed files with 3 additions and 2 deletions

View File

@ -40,8 +40,8 @@
systemd.services.gitlab-runner.serviceConfig.DynamicUser = lib.mkForce false; systemd.services.gitlab-runner.serviceConfig.DynamicUser = lib.mkForce false;
systemd.services.gitlab-runner.serviceConfig.User = "gitlab-runner"; systemd.services.gitlab-runner.serviceConfig.User = "gitlab-runner";
systemd.services.gitlab-runner.serviceConfig.Group = "gitlab-runner"; systemd.services.gitlab-runner.serviceConfig.Group = "gitlab-runner";
#systemd.services.gitlab-runner.serviceConfig.ExecStart = lib.mkForce 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}''; ''${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 # TODO https://docs.gitlab.com/runner/configuration/proxy.html
#systemd.services.docker.environment = { #systemd.services.docker.environment = {

View File

@ -42,6 +42,7 @@
"127.0.0.1:${toString config.services.prometheus.exporters.node.port}" "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:${toString config.services.prometheus.exporters.ipmi.port}"
"127.0.0.1:9323" "127.0.0.1:9323"
"127.0.0.1:9252"
]; ];
}]; }];
} }