In this chapter, we will show you how to configure GitLab and its Runners to expose service metrics. These statistics are then collected by a system that specializes in data with a time dimension. GitLab uses Prometheus to do this and so will we.
Prometheus also provides the Alertmanager application, where you can define alert rules that trigger customizable actions, such as sending a mail or triggering a webhook, as described in Chapter 13, Integrating GitLab with CI/CD Tools. You can then either silence or deal with the alert. We will provide an example of how you can use this to enable an alert when some threshold you set is breached and the GitLab Runner is malfunctioning or not doing what you expect it to do.
In this chapter, we will cover the following topics:
- Enabling monitoring for Runners
- Enabling the GitLab Runner configuration file
- Runner business...