首页 > 解决方案 > 如何在安装 gitlab 运行器期间添加 Prometheus 侦听器

问题描述

我们正在使用 apt-get - 安装 GitLab 运行器apt-get install gitlab-runner

有没有办法在安装过程中添加 --listener-address ?我找不到任何有关如何执行此操作的文档。我目前的工作如下 -

apt-get update

curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash

apt-get install gitlab-runner

# In order to add a listener for prometheus we need to stop the process started by the install and restart it with the listener flag 

pkill gitlab-runner 

/usr/bin/gitlab-runner run --working-directory /home/gitlab-runner --config/etc/gitlab-runner/config.toml --service gitlab-runner --user gitlab-runner --listen-address 0.0.0.0:9299

非常感谢任何其他解决方案!

标签: gitlabgitlab-cigitlab-ci-runnerapt

解决方案


推荐阅读