ansible-gitlab_runner icon indicating copy to clipboard operation
ansible-gitlab_runner copied to clipboard

Activate gitlab runners metrics

Open oussemos opened this issue 7 years ago • 6 comments

Give the possibility to activate metrics on gitlab runners

Docs: https://docs.gitlab.com/runner/monitoring/README.html

oussemos avatar Dec 15 '17 15:12 oussemos

First of all, thanks for your PR! However, can you do it against the debops/debops repository? The roles will be exported from there in the future.

You should describe what each variable does as a separate section, that way they are better presented in the documentation.

In this case the Prometheus server connects to the Runners over TCP, correct? Is the traffic secured somehow? Since daemon listens over the network for external connections, that will require configuration for the debops.ferm role to open the port in the firewall. Registering the TCP port in /etc/services database using debops.etc_services role would also be nice.

If you don't plan to add the above features yourself, open an issue instead - I'll get around to it, most likely after the holidays and New Year.

drybjed avatar Dec 15 '17 17:12 drybjed

@drybjed Thank you your work on the debops project too! I'll open a new PR after (or maybe during) the holidays.

oussemos avatar Dec 15 '17 20:12 oussemos

@oussemos You're welcome. :-) By the way, it would be nice if DebOps could set up Prometheus, so that GitLab Runner support for it could be properly tested. The prometheus package is in Debian, so it makes installation much easier. Perhaps you have a Prometheus Ansible role, or you plan to write it?

drybjed avatar Dec 15 '17 21:12 drybjed

@drybjed I used this one https://github.com/cloudalchemy/ansible-prometheus

oussemos avatar Dec 15 '17 21:12 oussemos

@oussemos Since you're interested in Prometheus, there's currently a work in progress PR with Prometheus support for DebOps. You could try it out and help with development. :-)

drybjed avatar Feb 22 '18 14:02 drybjed

@drybjed I'll have a look into it :)

oussemos avatar Feb 22 '18 14:02 oussemos