Learn about the GitLab Integration.

GitLab Integration

GitLab is a web-based Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features. This integration installs and configures Telegraf to send GitLab metrics into Wavefront. Telegraf is a light-weight server process capable of collecting, processing, aggregating, and sending metrics to a Wavefront proxy.

In addition to setting up the metrics flow, this integration also installs a dashboard. Here’s a section of a dashboard displaying GitLab metrics:





To see a list of the metrics for this integration, select the integration from https://github.com/influxdata/telegraf/tree/master/plugins/inputs.

GitLab Setup

This integration uses Telegraf Prometheus input plugin to fetch the metrics from GitLab and push them to Wavefront. If you’ve already installed Telegraf on your server, you can skip to Step 2.

Step 1: Install the Telegraf Agent

Log in to your product instance and follow the instructions on the Setup tab to install Telegraf and a Wavefront proxy in your environment. If a proxy is already running in your environment, you can select that proxy and the Telegraf install command connects with that proxy. Sign up for a free trial to check it out!

Step 2: Enable the Prometheus Input Plugin

Create a file called gitlab.conf in /etc/telegraf/telegraf.d and enter the following snippet:

    #Read metrics exposed by GitLab
      name_prefix = "gitlab."
      urls = ["http://localhost:9090/metrics"]

Step 3: Restart Telegraf

Run sudo service telegraf restart to restart your Telegraf agent.