Use GitLab Connector to integrate your Dynatrace environment with GitLab repositories. This integration enables you to use GitLab Connector actions in your workflow to manage issues and merge requests automatically based on your monitoring data and events.
To use GitLab workflow actions, you need to install GitLab from Dynatrace Hub.
External requests enable outbound network connections from your Dynatrace environment to external services. They allow you to control access to public endpoints from the AppEngine with app functions and functions in Dashboards, Notebooks, and Automations.
Go to Settings and select General > Environment management, External Requests.
Select New host pattern.
Add the domain names.
Select Add.
This way you can granularly control the web services your functions can connect to.
You need to add the *.gitlab.com
domain name.
Aside from permissions required by Workflows to run actions on your behalf, there are additional permissions required to use GitLab Connector actions.
To fine-tune permissions granted to Workflows
app-settings:objects:read
To learn more about Workflows user permissions, see User permissions for workflows.
You need a configured connection for each of your GitLab environments.
To configure a connection
Go to Settings and select Connections > Connectors > GitLab.
Select Connection.
Define your GitLab connection.
Select Create.
The GitLab token needs the scopes api
, read_repository
, read_user
, and write_repository
.
Scopes can be skipped if related actions are not used.
Refer to the GitLab documentation for details on which scope is needed for which action.