- Enable Alert Management
- Alert Management severity
- Alert Management list
- Alert Management details
- Use cases for assigning alerts
Introduced in GitLab 13.0.
Alert Management enables developers to easily discover and view the alerts generated by their application. By surfacing alert information where the code is being developed, efficiency and awareness can be increased.
There are several ways to accept alerts into your GitLab project, as outlined below. Enabling any of these methods will allow the Alerts list to display. After configuring alerts, visit Operations > Alerts in your project’s sidebar to view the list of alerts.
A new way of monitoring Alerts via a GitLab integration is with Opsgenie.
To enable Opsgenie integration:
- Sign in as a user with Maintainer or Owner permissions.
- Navigate to Operations > Alerts.
- In the Integrations select box, select Opsgenie.
- Click the Active toggle.
- In the API URL, enter the base URL for your Opsgenie integration, such
- Click Save changes.
After enabling the integration, navigate to the Alerts list page at Operations > Alerts, and click View alerts in Opsgenie.
GitLab provides the Generic Alerts endpoint so you can accept alerts from a third-party alerts service. See the instructions for toggling generic alerts to add this option. After configuring the endpoint, the Alerts list is enabled.
To populate the alerts with data, see Customizing the payload for requests to the alerts endpoint.
You can install the GitLab-managed Prometheus application on your Kubernetes cluster. For more information, see Managed Prometheus on Kubernetes. When GitLab-managed Prometheus is installed, the Alerts list is also enabled.
To populate the alerts with data, see GitLab-Managed Prometheus instances.
You can configure an externally-managed Prometheus instance to send alerts to GitLab. To set up this configuration, see the configuring Prometheus documentation. Activating the external Prometheus configuration also enables the Alerts list.
To populate the alerts with data, see External Prometheus instances.
Each level of alert contains a uniquely shaped and color-coded icon to help you identify the severity of a particular alert. These severity icons help you immediately identify which alerts you should prioritize investigating:
Alerts contain one of the following icons:
You can find the Alert Management list at Operations > Alerts in your project’s sidebar. Each alert contains the following metrics:
- Severity - The current importance of a alert and how much attention it should receive.
Start time - How long ago the alert fired. This field uses the standard GitLab pattern of
X time ago, but is supported by a granular date/time tooltip depending on the user’s locale.
- Alert description - The description of the alert, which attempts to capture the most meaningful data.
- Event count - The number of times that an alert has fired.
- Issue - A link to the incident issue that has been created for the alert.
- Status - The current status of the alert.
The Alert Management list displays alerts sorted by start time, but you can change the sort order by clicking the headers in the Alert Management list.
To see if a column is sortable, point your mouse at the header. Sortable columns display an arrow next to the column name, as shown in this example:
The alert list supports a simple free text search.
This search filters on the following fields:
- Monitoring tool
Each alert contains a status dropdown to indicate which alerts need investigation.
Standard alert statuses include
- Triggered: No one has begun investigation.
- Acknowledged: Someone is actively investigating the problem.
- Resolved: No further work is required.
Navigate to the Alert Management detail view by visiting the Alert Management list and selecting an Alert from the list.
The Alert Management detail view enables you to update the Alert Status. See Alert Management statuses for more details.
The Alert Management detail view enables you to create an issue with a description automatically populated from an alert. To create the issue, click the Create Issue button. You can then view the issue from the alert by clicking the View Issue button.
Closing a GitLab issue associated with an alert changes the alert’s status to Resolved. See Alert Management statuses for more details about statuses.
The Alert Management detail view allows users to update the Alert assignee.
In large teams, where there is shared ownership of an alert, it can be difficult to track who is investigating and working on it. The Alert Management detail view enables you to update the Alert assignee:
To display the list of current alerts, click Operations > Alerts:
Select your desired alert to display its Alert Management Details View:
- If the right sidebar is not expanded, click Expand sidebar to expand it.
In the right sidebar, locate the Assignee and click Edit. From the dropdown menu, select each user you want to assign to the alert. GitLab creates a To-Do list item for each user.
To remove an assignee, click Edit next to the Assignee dropdown menu and deselect the user from the list of assignees, or click Unassigned.
When you take action on an alert, this is logged as a system note, which is visible in the Alert Details view. This gives you a linear timeline of the alert’s investigation and assignment history.
The following actions will result in a system note:
- Updating the status of an alert
- Creating an issue based on an alert
- Assignment of an alert to a user
You can manually create To-Do list items for yourself from the Alert details screen, and view them later on your To-Do List. To add a To-Do:
- To display the list of current alerts, click Operations > Alerts.
- Select your desired alert to display its Alert Management Details View.
Click the Add a To-Do button in the right sidebar:
Click the To-Do in the navigation bar to view your current To-Do list.
Introduced in GitLab 13.2.
To view the metrics for an alert:
- Sign in as a user with Developer or higher permissions.
- Navigate to Operations > Alerts.
- Click the alert you want to view.
- Below the title of the alert, click the Metrics tab.
For GitLab-managed Prometheus instances, metrics data is automatically available for the alert, making it easy to see surrounding behavior. See Managed Prometheus instances for information on setting up alerts.
For externally-managed Prometheus instances, you can configure your alerting rules to display a chart in the alert. See Embedding metrics based on alerts in incident issues for information on how to appropriately configure your alerting rules. See External Prometheus instances for information on setting up alerts for your self-managed Prometheus instance.
Consider a team formed by different sections of monitoring, collaborating on a single application. After an alert surfaces, it’s extremely important to route the alert to the team members who can address and resolve the alert.
Assigning Alerts to multiple assignees eases collaboration and delegation. All assignees are shown in your team’s work-flows, and all assignees receive notifications, simplifying communication and ownership of the alert.
After completing their portion of investigating or fixing the alert, users can unassign their account from the alert when their role is complete. The alerts status can be updated to reflect if the alert has been resolved.
You can be alerted via a Slack message when a new alert has been received.
See the Slack Notifications Service docs for information on how to set this up.