GitLab plugin
Click the following link for additional content such as blogs, videos, use cases, and more:
Monitor the CI/CD metrics from your GitLab environment.
Adding a data source
To add a data source, open the relevant workspace and then click on the + next to Data Sources on the left-hand menu in SquaredUp. Search for the data source and click on it to open the Add data source page.
Before you start
Create a GitLab API Token
- Access a GitLab account with access to the target projects.
- Navigate to https://gitlab.com/-/user_settings/personal_access_tokens
- Click Add new token.
- Ensure the access is at least
read_apiandread_repository. Please note,read_userandread_registryare optional. - Click the Create token button.
- Copy the provided API token.
Configuring the data source
Display name:
Enter a name for your data source. This helps you to identify this data source in the list of your data sources.- Instance URL:
Enter a URL if you wish to use your own instance of GitLab.NoteIf you leave this section blank, https://gitlab.com will be used by default.
- API Token:
Paste the API token in here. Restrict access to this data source:
Optionally, enable this toggle if you only want certain users/groups to have access to the data source, or those with the permission to link it to new workspaces. See data source access control for more information.NoteThe term data source here really means data source instance. For example, a user may configure two instances of the AWS data source, one for their development environment and one for production. In that case, each data source instance has its own access control settings.
By default, Restrict access to this data source is set to off. The data source can be viewed, edited and administered by anyone. If you would like to control who has access to this data source, switch Restrict access to this data source to on.
Use the Restrict access to this data source dropdown to control who has access to the workspace:
- By default, the user setting the permissions for the data source will be given Full Control and the Everyone group will be given Link to workspace permissions.
- Tailor access to the data source, as required, by selecting individual users or user groups from the dropdown and giving them Link to workspace or Full Control permissions.
- If the user is not available from the dropdown, you are able to invite them to the data source by typing in their email address and then clicking Add. The new user will then receive an email inviting them to create an account on SquaredUp. Once the account has been created, they will gain access to the organization.
- At least one user or group must be given Full Control.
- Admin users can edit the configuration, modify the Access Control List (ACL) and delete the data source, regardless of the ACL chosen.
See Access control for more information.
Click Test and add to validate the data source configuration. SquaredUp will now attempt to connect to SquaredUp using the provided authentication method.
- Testing passed – a success message will be displayed and then the configuration will be saved.
- Testing passed with warnings – warnings will be listed and potential fixes suggested. You can still use the data source with warnings. Select Save with warnings if you believe that you can still use the data source as required with the warnings listed. Alternatively, address the issues listed and then select Rerun tests to validate the data source configuration again. If the validation now passes, click Save.
- Testing Failed – errors will be listed and potential fixes suggested. You cannot use the data source with errors. You are able to select Save with errors if you believe that a system outside of SquaredUp is causing the error that you need to fix. Alternatively, address the issues listed and then select Rerun tests to validate the data source configuration again. If the validation now passes, click Save.
You can edit data source configurations at any time from Settings > Data Sources.
Testing and troubleshooting
If you encounter an error refer to the guidance or contact our support team in-app or via SquaredUp Support
For errors on dashboard tiles see Troubleshooting tiles.
Please check your GitLab API Token or permissions
Check the URL is correct. Try removing the URL so that the default of https://gitlab.com is used.
Check the API token is correct. If you've just created the token, wait a few minutes and try again by clicking Rerun tests.
Next steps
Data streams
You can use these data streams to create new tiles to show data, or if there are preconfigured dashboards installed you can copy or edit those.
Data streams are named queries targeted at a data source, typically mapped to a specific API endpoint. They define how SquaredUp retrieves live data. By standardizing information from diverse formats into a simple table, data streams provide a consistent starting point regardless of the original source system.
Each plugin includes its own set of data streams. When editing a tile or exploring data, the data stream you choose acts as the entry point to the objects and records within that data source.
Scoped data streams allow you to specify which objects to pull data about. Global data streams return general information not tied to objects.
Some data streams are configurable, meaning you can configure additional settings on the Parameters tab of the tile editor to create a bespoke query.
While creating a tile you can tweak data streams by grouping or aggregating specific columns.
See Data Streams for more information.
The following data streams are installed with this plugin.
All Pipeline Stage Status
All Pipelines and their Stage Status' for a project
Availability
Displays the availability of a environment
Open Issues
Displays the open issues of a project
Open Merge Requests
Displays the open merge requests of a project
Pipeline failures
Displays the failures of a project
Scope Data
Displays the general data of objects
Status
Displays the health of a Pipeline or Deployment