-
Notifications
You must be signed in to change notification settings - Fork 12
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
Connect gitlab runners to prometheus #1264
Comments
@duallain How can we connect the Runners to Prom? I understand we need the following:
Can you advise on how to automate the the second and third points? |
I found this article with default ports, it looks like gitlab-exporter's default is normally 9168. (It's sort of arbitrary from our perspective, but if we want to try to avoid a collision later, maybe we can just ride on their coattails), https://github.com/prometheus/prometheus/wiki/Default-port-allocations Prom isn't a first class object from the POV of networking, it's 'just' part of the k8s cluster. I think we should make a 'k8s-accessor' security group in each aws region, that we expect to be attached to the clusters (both existing and eks). The gitlab runners could then authorize access with something like: an inbound rule, allow to port 9252 from k8s-accessor sg. 3a. The pattern I've used in the past is to attach some special tags to the ec2 instance. Something like Example config, using the labels from above as a starting point.
3b. Full reference: |
A bit further down this page there's another entry for GitLab Runner exporter which uses port 9252. |
Ahh, classic multiple things with with the same name tripping me up. Glad you saw the list and used it. |
We could consider installing the node-exporter and exposing it as well. Would give us metrics on diskspace and other node related items. |
Good point on node-exporter. Will PR (my other half says to just create a GitLab scheduled job to curl a DeadMansSnitch to make sure that everything works on the runners :) |
|
https://docs.gitlab.com/runner/monitoring/
The text was updated successfully, but these errors were encountered: