Skip to content

Commit

Permalink
Activate gitlab runners metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Oussema CHERNI committed Dec 15, 2017
1 parent 390703a commit de2bf30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit de2bf30

Please sign in to comment.