paint-brush
GitLab Performance Monitoring with Grafanaby@mlabouardy
4,073 reads
4,073 reads

GitLab Performance Monitoring with Grafana

by Mohamed LabouardyNovember 18th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Since <strong>GitLab v8.4</strong> you can monitor your own instance with <strong>InfluxDB</strong> &amp; <strong>Grafana</strong> stack by using the GitLab application performance measuring system called “<strong>Gitlab Performance Monitoring</strong>“.
featured image - GitLab Performance Monitoring with Grafana
Mohamed Labouardy HackerNoon profile picture

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.