GitLab Performance Monitoring with Grafana

Written by mlabouardy | Published 2017/11/18
Tech Story Tags: software-development | monitoring | git | devops

TLDRvia the TL;DR App

Since GitLab v8.4 you can monitor your own instance with InfluxDB & Grafana stack by using the GitLab application performance measuring system called β€œGitlab Performance Monitoringβ€œ.

GitLab writes metrics to InfluxDB via UDP. Therefore, this must be enabled in /etc/influxdb/influxdb.conf:

Restart your InfluxDB instance. Then, create a database to store GitLab metrics:

CREATE DATABASE β€œgitlab_metrics”

Next, go to Gitlab Setings Dashboard and enable InfluxDB Metrics as shown below:

Then, you need to restart GitLab:

gitlab-ctl restart

Now your GitLab instance should send data to InfluxDB:

Finally, Point your browser to your Grafana URL, then login as the admin user. Choose β€˜Data Sourcesβ€˜ from the menu. Then, click β€˜Add newβ€˜ in the top bar.

Fill in the configuration details for the InfluxDB data source:

You can now import the dashboard.json file by opening the dashboard dropdown menu and click β€˜Importβ€˜ :

Note: Check my Github for more interactive & beautiful Grafana dashboards.


Published by HackerNoon on 2017/11/18