gitlab - 如何在安装 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
非常感谢任何其他解决方案!
解决方案
推荐阅读
- reactjs - 如何使用 Axios 以表单的形式发布到数据库?
- selenium - Selenium IDE - 导致此错误消息的原因(“无法读取未定义的属性'trim'”)
- google-chrome-devtools - Chrome 开发者工具 - 删除网络标签中不必要的标题
- powerbi - 如何根据过滤器选择获得上一年的值?
- python - 重定向标准输入和标准输出
- android - 以编程方式圆角图像视图
- javascript - 识别和编码网址的问题
- blazor-server-side - 发现具有意外名称“EditForm”的标记元素
- mysql - MariaDB/ MySQL:无法从交叉连接中消除重复对
- linux - 测试 sysfs 热驱动 API