Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
87cf79f9
Verified
Commit
87cf79f9
authored
1 year ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
GitLab CI runner monitoring documentation (
team#41042
)
parent
06c207d9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
service/ci.md
+16
-12
16 additions, 12 deletions
service/ci.md
with
16 additions
and
12 deletions
service/ci.md
+
16
−
12
View file @
87cf79f9
...
...
@@ -694,6 +694,10 @@ runner](https://gitlab.com/gitlab-org/gitlab-runner/-/issues) and a [project pag
*
[
kept artifacts cannot be unkept
](
https://gitlab.com/gitlab-org/gitlab/-/issues/289954
)
*
GitLab doesn't track
[
wait times for jobs
](
https://gitlab.com/groups/gitlab-org/-/epics/10630
)
, we approximate this
by tracking queue size and with runner-specific metrics like
concurrency limit hits
## Monitoring and testing
To test a runner, it can be registered only with a project, to run
...
...
@@ -717,18 +721,18 @@ example, `ci_pending_builds` shows the size of the queue,
etc. Those are visible in the
[
GitLab grafana dashboard
](
https://grafana.torproject.org/d/QrDJktiMz/gitlab-omnibus
)
,
particularly in
[
this view
](
https://grafana.torproject.org/d/QrDJktiMz/gitlab-omnibus?orgId=1&refresh=1m&var-node=gitlab-02.torproject.org
)
.
Other metrics might become available in the future: for example,
runners can export
the
i
r
own Prometheus metrics, but currently do
not. They are, naturally, monitored through the
`node-exporter`
like
all other TPO servers, however.
We may eventually monitor GitLab runners directly; they can b
e
configured to expose metrics through a Prometheus exporter. The Puppet
module supports this through the
`gitlab_ci_runner::metrics_server`
variable, but we would need to hook it into
ou
r
se
rver as well. See
also
[
the upstream documentation
](
https://docs.gitlab.com/runner/monitoring/README.html
)
. Right now it feels the existing
"node"-level and
the GitLab
-level monitoring in Prometheus is
sufficient
.
Runners are, naturally, monitored through the
`node-exporter`
like
all o
ther
TPO servers.
Runners also expose metrics through a built-in Prometheus exporter on
a predefined port, accessible only by the Prometheus server. The
Puppet module supports this through th
e
`gitlab_ci_runner::metrics_server`
variable, but we have rolled our
own thing for now, see
[
issue 41042
](
https://gitlab.torproject.org/tpo/tpa/team/-/issues/41042
)
. See also
[
the upstream
documentation
](
https://docs.gitlab.com/runner/monitoring/README.html
)
ab
ou
t
se
lf-monitoring.
CI metrics are aggregated in
the
[
GitLab
CI Overview Grafana
dashboard
](
https://grafana.torproject.org/d/fd0b2fb2-88d0-4f85-bc86-16164c083b51/gitlab-ci-overview?orgId=1
)
.
## Backups
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment