Skip to content

Commit 220f711

Browse files
author
Oussema CHERNI
committed
Activate gitlab runners metrics
1 parent 390703a commit 220f711

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

defaults/main.yml

+7
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ gitlab_runner__concurrent: '{{ ansible_processor_vcpus
114114
(ansible_local.docker.installed|d()) | bool)
115115
else "1" }}'
116116

117+
# ]]]
118+
# .. envvar:: gitlab_runner__metrics [[[
119+
#
120+
# Activate Gitlab metrics server, .
121+
gitlab_runner__metrics_bind: '0.0.0.0:9252'
122+
gitlab_runner__metrics: False
123+
117124
# ]]]
118125
# .. envvar:: gitlab_runner__domain [[[
119126
#

templates/etc/gitlab-runner/config.toml.j2

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# {{ ansible_managed }}
22

33
concurrent = {{ gitlab_runner__concurrent }}
4+
{% if gitlab_runner__metrics | d() | bool %}
5+
metrics_server = {{ gitlab_runner__metrics_bind }}
6+
{% endif %}
47

58
{% set gitlab_runner__tpl_instances = [] %}
69
{% set gitlab_runner__tpl_instance_tokens = [] %}

0 commit comments

Comments
 (0)