Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate gitlab runners metrics #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ gitlab_runner__concurrent: '{{ ansible_processor_vcpus
(ansible_local.docker.installed|d()) | bool)
else "1" }}'

# ]]]
# .. envvar:: gitlab_runner__metrics [[[
#
# Activate Gitlab metrics server, .
gitlab_runner__metrics_bind: '0.0.0.0:9252'
gitlab_runner__metrics: False

# ]]]
# .. envvar:: gitlab_runner__domain [[[
#
Expand Down
3 changes: 3 additions & 0 deletions templates/etc/gitlab-runner/config.toml.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# {{ ansible_managed }}

concurrent = {{ gitlab_runner__concurrent }}
{% if gitlab_runner__metrics | d() | bool %}
metrics_server = {{ gitlab_runner__metrics_bind }}
{% endif %}

{% set gitlab_runner__tpl_instances = [] %}
{% set gitlab_runner__tpl_instance_tokens = [] %}
Expand Down