GitLab data source
The GitLab data source allows you to visualize and monitor GitLab activity in Grafana. You can track statistics such as top contributors, commits per day, deployments, merge requests, and pipeline status. Combine data from the GitLab API with other sources and use template variables to build dynamic, filterable dashboards.
Note
The GitLab data source is an Enterprise plugin. It’s available with a Grafana Cloud Pro or Advanced plan or with Grafana Enterprise. For installation instructions, refer to Install Grafana Enterprise plugins.
Supported GitLab environments
The GitLab data source works with:
- GitLab.com (SaaS)
- Self-hosted GitLab (Community Edition and Enterprise Edition)
Note
Some features require specific GitLab tiers. For example, audit events require a GitLab Premium or Ultimate subscription, or a self-hosted instance with admin privileges.
Requirements
- Grafana version 11.6.7 or later
- A GitLab personal access token with the
read_apiscope
Install the plugin
To install the GitLab data source plugin, refer to Installation.
Note
The plugin is pre-installed on Grafana Cloud Pro and Advanced instances.
Supported features
Supported resource types
The GitLab data source can query the following resource types. For detailed field documentation, refer to the query editor.
Get started
The following documents help you set up and use the GitLab data source:
- Configure the GitLab data source
- GitLab query editor
- Template variables
- Annotations
- Alerting
- Troubleshoot issues
Additional resources
After configuring the GitLab data source, you can also:
- Create a wide variety of visualizations.
- Configure and use templates and variables.
- Add transformations.
- Optimize performance with query caching.
Pre-built dashboards
The GitLab data source includes a pre-built GitLab Overview dashboard. To import it:
- Navigate to the GitLab data source configuration page.
- Select the Dashboards tab.
- Click Import next to the GitLab Overview dashboard.
Plugin updates
Always ensure that your plugin version is up-to-date so you have access to all current features and improvements. Navigate to Plugins and data > Plugins to check for updates. Grafana recommends upgrading to the latest Grafana version, and this applies to plugins as well.
Note
Plugins are automatically updated in Grafana Cloud.



