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
f2d9e8eb
Verified
Commit
f2d9e8eb
authored
1 year ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
document gitlab CI monitoring better
parent
c7de797f
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
+17
-20
17 additions, 20 deletions
service/ci.md
with
17 additions
and
20 deletions
service/ci.md
+
17
−
20
View file @
f2d9e8eb
...
...
@@ -701,15 +701,28 @@ runner](https://gitlab.com/gitlab-org/gitlab-runner/-/issues) and a [project pag
by tracking queue size and with runner-specific metrics like
concurrency limit hits
## Monitoring and testing
## Monitoring and metrics
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
)
. It features multiple exporter sources:
1.
the GitLab rails exporter which gives us the queue size
2.
the GitLab runner exporters, which show many jobs are running in
parallel (see
[
the upstream documentation
](
https://docs.gitlab.com/runner/monitoring/README.html
)
)
3.
a home made exporter that queries the GitLab database to extract
queue wait times
4.
and finally the node exporter to show memory usage, load and disk
usage
Note that not all runners registered on GitLab are directly managed by
TPA, so they might not show up in our dashboards.
## Tests
To test a runner, it can be registered only with a project, to run
non-critical jobs against it. See the
[
installation section
](
#Installation
)
for
details on the setup.
Monitoring is otherwise done through Prometheus, on a need-to basis,
see the
[
log and metrics
](
#log-and-metrics
)
section below.
## Logs and metrics
GitLab runners send logs to
`syslog`
and
`systemd`
. They contain minimal
...
...
@@ -718,22 +731,6 @@ Docker image URLs, which do contain usernames. Those end up in
`/var/log/daemon.log`
, which gets rotated daily, with a one-week
retention.
The GitLab instance exports a set of metrics to monitor CI. For
example,
`ci_pending_builds`
shows the size of the queue,
`ci_running_builds`
shows the number of currently running builds,
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
)
.
Runners are, naturally, monitored through the
`node-exporter`
like
all other TPO servers.
Runners also expose metrics through a built-in Prometheus exporter on
a predefined port, accessible only by the Prometheus server. See also
[
the upstream documentation
](
https://docs.gitlab.com/runner/monitoring/README.html
)
about self-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 service requires no backups: all configuration should be
...
...
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