2020-10-24 23:57:45 +05:30
---
stage: Monitor
2022-04-04 11:22:00 +05:30
group: Respond
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2020-10-24 23:57:45 +05:30
---
2021-03-11 19:13:27 +05:30
# Alerts **(FREE)**
2020-10-24 23:57:45 +05:30
2021-02-22 17:27:13 +05:30
Alerts are a critical entity in your incident management workflow. They represent a notable event that might indicate a service outage or disruption. GitLab provides a list view for triage and detail view for deeper investigation of what happened.
2021-01-03 14:25:43 +05:30
2023-01-13 00:05:48 +05:30
## Alert list
2021-01-03 14:25:43 +05:30
2022-04-04 11:22:00 +05:30
Users with at least the Developer role can
2021-09-04 01:27:46 +05:30
access the Alert list at **Monitor > Alerts** in your project's
2021-01-03 14:25:43 +05:30
sidebar. The Alert list displays alerts sorted by start time, but
2022-11-25 23:54:43 +05:30
you can change the sort order by selecting the headers in the Alert list.
2020-10-24 23:57:45 +05:30
The alert list displays the following information:
2021-01-03 14:25:43 +05:30
![Alert List ](img/alert_list_v13_1.png )
2020-10-24 23:57:45 +05:30
2021-01-03 14:25:43 +05:30
- **Search**: The alert list supports a simple free text search on the title,
2020-10-24 23:57:45 +05:30
description, monitoring tool, and service fields.
([Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/213884) in GitLab 13.1.)
2021-01-03 14:25:43 +05:30
- **Severity**: The current importance of a alert and how much attention it
should receive. For a listing of all statuses, read [Alert Management severity ](#alert-severity ).
- **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:
2021-06-08 01:23:25 +05:30
- **Triggered**: Investigation has not started.
2020-10-24 23:57:45 +05:30
- **Acknowledged**: Someone is actively investigating the problem.
- **Resolved**: No further work is required.
2023-04-23 21:23:45 +05:30
- **Ignored**: No action is taken on the alert.
2021-01-03 14:25:43 +05:30
## Alert severity
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:
![Alert Management Severity System ](img/alert_management_severity_v13_0.png )
2020-10-24 23:57:45 +05:30
2021-01-03 14:25:43 +05:30
Alerts contain one of the following icons:
2020-10-24 23:57:45 +05:30
2021-11-18 22:05:49 +05:30
<!-- vale gitlab.SubstitutionWarning = NO -->
2021-01-03 14:25:43 +05:30
| Severity | Icon | Color (hexadecimal) |
|----------|-------------------------|---------------------|
| Critical | ** {severity-critical}** | `#8b2615` |
| High | ** {severity-high}** | `#c0341d` |
| Medium | ** {severity-medium}** | `#fca429` |
| Low | ** {severity-low}** | `#fdbc60` |
| Info | ** {severity-info}** | `#418cd8` |
| Unknown | ** {severity-unknown}** | `#bababa` |
2020-10-24 23:57:45 +05:30
2021-11-18 22:05:49 +05:30
<!-- vale gitlab.SubstitutionWarning = YES -->
2021-01-03 14:25:43 +05:30
## Alert details page
2020-10-24 23:57:45 +05:30
2021-01-29 00:20:46 +05:30
Navigate to the Alert details view by visiting the [Alert list ](alerts.md )
2022-04-04 11:22:00 +05:30
and selecting an alert from the list. You need at least the Developer role
2021-01-03 14:25:43 +05:30
to access alerts.
for this demo project. Select any alert in the list to examine its alert details
page.
2020-10-24 23:57:45 +05:30
2021-01-03 14:25:43 +05:30
Alerts provide **Overview** and **Alert details** tabs to give you the right
amount of information you need.
2020-10-24 23:57:45 +05:30
2021-01-03 14:25:43 +05:30
### Alert details tab
2020-10-24 23:57:45 +05:30
2021-02-22 17:27:13 +05:30
The **Alert details** tab has two sections. The top section provides a short list of critical details such as the severity, start time, number of events, and originating monitoring tool. The second section displays the full alert payload.
2020-10-24 23:57:45 +05:30
2021-01-03 14:25:43 +05:30
### Metrics tab
2020-10-24 23:57:45 +05:30
2022-06-21 17:19:12 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/217768) in GitLab 13.2.
> - [Changed](https://gitlab.com/gitlab-org/gitlab/-/issues/340852) in GitLab 14.10. In GitLab 14.9 and earlier, this tab shows a metrics chart for alerts coming from Prometheus.
2020-10-24 23:57:45 +05:30
2022-06-21 17:19:12 +05:30
In many cases, alerts are associated to metrics. You can upload screenshots of metric
charts in the **Metrics** tab.
2020-10-24 23:57:45 +05:30
2022-06-21 17:19:12 +05:30
To do so, either:
2021-10-27 15:23:28 +05:30
2022-06-21 17:19:12 +05:30
- Select **upload** and then select an image from your file browser.
- Drag a file from your file browser and drop it in the drop zone.
2021-10-27 15:23:28 +05:30
2022-06-21 17:19:12 +05:30
When you upload an image, you can add text to the image and link it to the original graph.
2020-10-24 23:57:45 +05:30
2022-06-21 17:19:12 +05:30
![Text link modal ](img/incident_metrics_tab_text_link_modal_v14_9.png )
2020-10-24 23:57:45 +05:30
2022-06-21 17:19:12 +05:30
If you add a link, it is shown above the uploaded image.
2020-10-24 23:57:45 +05:30
2021-01-03 14:25:43 +05:30
### Activity feed tab
2020-10-24 23:57:45 +05:30
2021-01-03 14:25:43 +05:30
> [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/3066) in GitLab 13.1.
2020-10-24 23:57:45 +05:30
2021-01-03 14:25:43 +05:30
The **Activity feed** tab is a log of activity on the alert. When you take action on an alert, this is logged as a system note. This gives you a linear
timeline of the alert's investigation and assignment history.
2021-02-22 17:27:13 +05:30
The following actions result in a system note:
2021-01-03 14:25:43 +05:30
2023-01-13 00:05:48 +05:30
- [Updating the status of an alert ](#change-an-alerts-status )
2023-03-04 22:38:38 +05:30
- [Creating an incident based on an alert ](manage_incidents.md#from-an-alert )
2021-01-03 14:25:43 +05:30
- [Assignment of an alert to a user ](#assign-an-alert )
2022-05-07 20:08:51 +05:30
- [Escalation of an alert to on-call responders ](paging.md#escalating-an-alert )
2021-01-03 14:25:43 +05:30
![Alert Details Activity Feed ](img/alert_detail_activity_feed_v13_5.png )
## Alert actions
2021-02-22 17:27:13 +05:30
There are different actions available in GitLab to help triage and respond to alerts.
2021-01-03 14:25:43 +05:30
2023-01-13 00:05:48 +05:30
### Change an alert's status
You can change the status of an alert.
2021-01-03 14:25:43 +05:30
2023-01-13 00:05:48 +05:30
The available statuses are:
2022-05-07 20:08:51 +05:30
2023-01-13 00:05:48 +05:30
- Triggered (default for new alerts)
- Acknowledged
- Resolved
Prerequisites:
- You must have at least the Developer role.
To change an alert's status:
- From the [alert list ](#alert-list ):
1. In the **Status** column, next to an alert, select the status dropdown list.
1. Select a status.
- From the [alert details page ](#alert-details-page ):
1. On the right sidebar, select **Edit** .
1. Select a status.
2022-05-07 20:08:51 +05:30
2023-03-04 22:38:38 +05:30
To stop email notifications for alert recurrences in projects with [email notifications enabled ](paging.md#email-notifications-for-alerts ),
2023-01-13 00:05:48 +05:30
change the alert's status away from **Triggered** .
#### Resolve an alert by closing the linked incident
Prerequisites:
- You must have at least the Reporter role.
2023-03-04 22:38:38 +05:30
When you [close an incident ](manage_incidents.md#close-an-incident ) that is linked to an alert,
GitLab [changes the alert's status ](#change-an-alerts-status ) to **Resolved** .
2023-01-13 00:05:48 +05:30
You are then credited with the alert's status change.
#### As an on-call responder **(PREMIUM)**
On-call responders can respond to [alert pages ](paging.md#escalating-an-alert )
by changing the alert status.
2022-05-07 20:08:51 +05:30
2023-01-13 00:05:48 +05:30
Changing the status has the following effects:
2022-05-07 20:08:51 +05:30
2023-01-13 00:05:48 +05:30
- To **Acknowledged** : limits on-call pages based on the project's [escalation policy ](escalation_policies.md ).
- To **Resolved** : silences all on-call pages for the alert.
- From **Resolved** to **Triggered** : restarts the alert escalating.
2022-05-07 20:08:51 +05:30
2023-03-04 22:38:38 +05:30
In GitLab 15.1 and earlier, updating the status of an [alert with an associated incident ](manage_incidents.md#from-an-alert )
2022-08-13 15:12:31 +05:30
also updates the incident status. In [GitLab 15.2 and later ](https://gitlab.com/gitlab-org/gitlab/-/issues/356057 ),
the incident status is independent and does not update when the alert status changes.
2021-01-03 14:25:43 +05:30
### Assign an alert
> [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/3066) in GitLab 13.1.
In large teams, where there is shared ownership of an alert, it can be
difficult to track who is investigating and working on it. Assigning alerts eases collaboration and delegation by indicating which user is owning the alert. GitLab supports only a single assignee per alert.
To assign an alert:
2021-10-27 15:23:28 +05:30
1. Display the list of current alerts:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2021-10-27 15:23:28 +05:30
1. On the left sidebar, select **Monitor > Alerts** .
2021-01-03 14:25:43 +05:30
2021-06-08 01:23:25 +05:30
1. Select your desired alert to display its details.
2021-01-03 14:25:43 +05:30
2022-07-16 23:28:13 +05:30
![Alert Details View Assignees ](img/alert_details_assignees_v13_1.png )
2021-01-03 14:25:43 +05:30
1. If the right sidebar is not expanded, select
2022-07-23 23:45:48 +05:30
**Expand sidebar** (**{chevron-double-lg-right}**) to expand it.
2021-06-08 01:23:25 +05:30
2021-10-27 15:23:28 +05:30
1. On the right sidebar, locate the **Assignee** , and then select **Edit** .
From the list, select each user you want to assign to the alert.
2021-01-03 14:25:43 +05:30
GitLab creates a [to-do item ](../../user/todos.md ) for each user.
After completing their portion of investigating or fixing the alert, users can
2023-01-13 00:05:48 +05:30
unassign themselves from the alert. To remove an assignee, select **Edit** next to the **Assignee** dropdown list
2022-05-07 20:08:51 +05:30
and clear the user from the list of assignees, or select **Unassigned** .
2021-01-03 14:25:43 +05:30
2021-01-29 00:20:46 +05:30
### Create a to-do item from an alert
2021-01-03 14:25:43 +05:30
> [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/3066) in GitLab 13.1.
2023-03-04 22:38:38 +05:30
You can manually create a [to-do item ](../../user/todos.md ) for yourself
from an alert, and view it later on your **To-Do List** .
2021-01-03 14:25:43 +05:30
2023-03-04 22:38:38 +05:30
To add a to-do item, on the right sidebar, select **Add a to do** .
2023-07-09 08:55:56 +05:30
### Trigger actions from alerts **(ULTIMATE)**
> - Introduced in GitLab 13.1: incidents are not created automatically by default.
> - Mapping common severity values from the alert payload [introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/50871) in GitLab 13.9.
Turn on creating [incidents ](incidents.md ) automatically whenever an alert is triggered.
Prerequisites:
- You must have at least the Maintainer role for the project.
To configure the actions:
1. On the top bar, select **Main menu > Projects** and find your project.
1. On the left sidebar, select **Settings > Monitor** .
1. Expand the **Alerts** section, then select the **Alert settings** tab.
1. Select the **Create an incident** checkbox.
1. Optional. To customize the incident, from the **Incident template** , select a template to be
appended to the [incident summary ](incidents.md#summary ).
If the dropdown list is empty,
[create an issue template ](../../user/project/description_templates.md#create-an-issue-template ) first.
1. Optional. To send [an email notification ](paging.md#email-notifications-for-alerts ), select the
**Send a single email notification to Owners and Maintainers for new alerts** checkbox.
1. Select **Save changes** .