2020-08-18 17:09:57 -04:00
---
stage: Monitor
2021-03-18 11:09:04 -04:00
group: Monitor
2020-11-26 01:09:20 -05:00
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-08-18 17:09:57 -04:00
---
2021-01-28 01:08:59 -05:00
# Incidents **(FREE)**
2020-08-18 17:09:57 -04:00
2020-10-29 14:09:11 -04:00
Incidents are critical entities in incident management workflows. They represent
a service disruption or outage that needs to be restored urgently. GitLab provides
tools for the triage, response, and remediation of incidents.
2020-08-18 17:09:57 -04:00
2021-01-05 13:10:25 -05:00
Users with at least Guest [permissions ](../../user/permissions.md ) can access
incidents [on public projects ](../../user/permissions.md#project-members-permissions ).
2020-10-15 20:08:56 -04:00
## Incident Creation
2020-08-18 17:09:57 -04:00
2020-10-19 20:09:22 -04:00
You can create an incident manually or automatically.
2020-10-08 20:08:41 -04:00
2020-10-15 20:08:56 -04:00
### Create incidents manually
2020-09-03 14:08:29 -04:00
2020-10-29 14:09:11 -04:00
If you have at least Guest [permissions ](../../user/permissions.md ), to create an
Incident, you have two options to do this manually.
2020-08-18 17:09:57 -04:00
2020-10-19 20:09:22 -04:00
**From the Incidents List:**
2020-08-18 17:09:57 -04:00
2021-01-29 19:09:06 -05:00
> [Moved](https://gitlab.com/gitlab-org/monitor/health/-/issues/24) to GitLab Free in 13.3.
2020-08-18 17:09:57 -04:00
- Navigate to **Operations > Incidents** and click **Create Incident** .
- Create a new issue using the `incident` template available when creating it.
- Create a new issue and assign the `incident` label to it.
2020-11-08 22:09:03 -05:00
![Incident List Create ](img/incident_list_create_v13_3.png )
2020-09-09 08:08:22 -04:00
2020-10-19 20:09:22 -04:00
**From the Issues List:**
2020-09-09 08:08:22 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/230857) in GitLab 13.4.
2021-01-26 13:09:30 -05:00
1. Go to **Issues > List** , and select **New issue** .
1. In the **Type** dropdown, select **Incident** . Only fields relevant to
incidents are displayed on the page.
2021-04-01 08:08:56 -04:00
1. Create the incident as needed, and select **Create issue** to save the
2021-01-26 13:09:30 -05:00
incident.
2020-09-09 08:08:22 -04:00
2020-11-08 22:09:03 -05:00
![Incident List Create ](img/new_incident_create_v13_4.png )
2020-08-18 17:09:57 -04:00
2020-10-15 20:08:56 -04:00
### Create incidents automatically
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/4925) in GitLab Ultimate 11.11.
With Maintainer or higher [permissions ](../../user/permissions.md ), you can enable
GitLab to create incident automatically whenever an alert is triggered:
2020-12-10 16:10:15 -05:00
1. Navigate to **Settings > Operations > Incidents** and expand **Incidents** .
2020-10-29 14:09:11 -04:00
1. Check the **Create an incident** checkbox.
1. To customize the incident, select an
2021-02-18 07:09:34 -05:00
[issue template ](../../user/project/description_templates.md#create-an-issue-template ).
2021-01-21 19:09:25 -05:00
1. To send [an email notification ](paging.md#email-notifications ) to users
2020-10-15 20:08:56 -04:00
with [Developer permissions ](../../user/permissions.md ), select
2020-10-29 14:09:11 -04:00
**Send a separate email notification to Developers** . Email notifications are
also sent to users with **Maintainer** and **Owner** permissions.
2020-10-15 20:08:56 -04:00
1. Click **Save changes** .
2020-10-19 20:09:22 -04:00
### Create incidents via the PagerDuty webhook
2020-08-18 17:09:57 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/119018) in GitLab 13.3.
2020-10-15 20:08:56 -04:00
You can set up a webhook with PagerDuty to automatically create a GitLab incident
2020-08-18 17:09:57 -04:00
for each PagerDuty incident. This configuration requires you to make changes
in both PagerDuty and GitLab:
1. Sign in as a user with Maintainer [permissions ](../../user/permissions.md ).
1. Navigate to **Settings > Operations > Incidents** and expand **Incidents** .
1. Select the **PagerDuty integration** tab:
2020-11-08 22:09:03 -05:00
![PagerDuty incidents integration ](img/pagerduty_incidents_integration_v13_3.png )
2020-08-18 17:09:57 -04:00
1. Activate the integration, and save the changes in GitLab.
1. Copy the value of **Webhook URL** for use in a later step.
1. Follow the steps described in the
[PagerDuty documentation ](https://support.pagerduty.com/docs/webhooks )
to add the webhook URL to a PagerDuty webhook integration.
To confirm the integration is successful, trigger a test incident from PagerDuty to
2020-10-15 20:08:56 -04:00
confirm that a GitLab incident is created from the incident.
## Incident list
For users with at least Guest [permissions ](../../user/permissions.md ), the
Incident list is available at **Operations > Incidents**
in your project's sidebar. The list contains the following metrics:
![Incident List ](img/incident_list_v13_5.png )
- **Status** - To filter incidents by their status, click **Open** , **Closed** ,
or **All** above the incident list.
- **Search** - The Incident list supports a simple free text search, which filters
on the **Title** and **Incident** fields.
- **Severity** - Severity of a particular incident, which can be one of the following
values:
- **{severity-critical}** **Critical - S1**
- **{severity-high}** **High - S2**
- **{severity-medium}** **Medium - S3**
- **{severity-low}** **Low - S4**
- **{severity-unknown}** **Unknown**
[Editing incident severity ](#change-severity ) on the incident details page was
[introduced ](https://gitlab.com/gitlab-org/gitlab/-/issues/229402 ) in GitLab 13.4.
- **Incident** - The description of the incident, which attempts to capture the
most meaningful data.
- **Date created** - How long ago the incident was created. 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.
- **Assignees** - The user assigned to the incident.
- **Published** - Displays a green check mark (**{check-circle}**) if the incident is published
to a [Status Page ](status_page.md ). ** (ULTIMATE)**
The Incident list displays incidents sorted by incident created date.
2021-01-29 19:09:06 -05:00
([Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/229534) to GitLab Free in 13.3.)
2020-10-15 20:08:56 -04:00
To see if a column is sortable, point your mouse at the header. Sortable columns
display an arrow next to the column name.
Incidents share the [Issues API ](../../user/project/issues/index.md ).
2020-12-07 22:09:37 -05:00
NOTE:
2020-10-15 20:08:56 -04:00
For a live example of the incident list in action, visit this
[demo project ](https://gitlab.com/gitlab-examples/ops/incident-setup/everyone/tanuki-inc/-/incidents ).
2020-09-16 23:09:42 -04:00
## Incident details
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/230847) in GitLab 13.4.
2021-01-05 13:10:25 -05:00
Users with at least Guest [permissions ](../../user/permissions.md ) can view
2020-10-08 20:08:41 -04:00
the Incident Details page. Navigate to **Operations > Incidents** in your project's
sidebar, and select an incident from the list.
When you take any of these actions on an incident, GitLab logs a system note and
displays it in the Incident Details view:
- Updating the severity of an incident
([Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42358) in GitLab 13.5.)
For live examples of GitLab incidents, visit the `tanuki-inc` project's
[incident list page ](https://gitlab.com/gitlab-examples/ops/incident-setup/everyone/tanuki-inc/-/incidents ).
Click any incident in the list to display its incident details page.
2020-09-17 17:09:39 -04:00
### Summary
The summary section for incidents provides both critical details about and the
contents of the issue template (if one was used). The highlighted bar at the top
2020-10-08 20:08:41 -04:00
of the incident displays from left to right:
- The link to the original alert.
- The alert start time.
- The event count.
Beneath the highlight bar, GitLab displays a summary that includes the following fields:
2020-09-17 17:09:39 -04:00
- Start time
- Severity
- `full_query`
- Monitoring tool
2020-10-08 20:08:41 -04:00
Comments are displayed in threads, but can be displayed chronologically
[in a timeline view ](#timeline-view ).
2021-01-14 19:10:45 -05:00
### Metrics
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/235994) in [GitLab Premium](https://about.gitlab.com/pricing/) 13.8.
In many cases, incidents are associated to metrics. You can upload screenshots of metric
charts in the **Metrics** tab:
![Incident Metrics tab ](img/incident_metrics_tab_v13_8.png )
When you upload an image, you can associate it with a URL to the original graph. Users can access the original graph by clicking the image:
![Metric image URL dialog ](img/metric_image_url_dialog_v13_8.png )
2020-09-17 17:09:39 -04:00
### Alert details
2020-10-15 20:08:56 -04:00
Incidents show the details of linked alerts in a separate tab. To populate this
2020-09-16 23:09:42 -04:00
tab, the incident must have been created with a linked alert. Incidents
2020-10-15 20:08:56 -04:00
created automatically from alerts have this
field populated.
2020-09-16 23:09:42 -04:00
2020-11-08 22:09:03 -05:00
![Incident alert details ](img/incident_alert_details_v13_4.png )
2020-10-08 20:08:41 -04:00
2021-01-21 19:09:25 -05:00
### Timeline view **(PREMIUM)**
2020-10-08 20:08:41 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/227836) in [GitLab Premium](https://about.gitlab.com/pricing/) 13.5.
To quickly see the latest updates on an incident, click
**{comments}** **Turn timeline view on** in the comment bar to display comments
un-threaded and ordered chronologically, newest to oldest:
2020-11-08 22:09:03 -05:00
![Timeline view toggle ](img/timeline_view_toggle_v13_5.png )
2020-10-14 05:08:46 -04:00
2021-01-21 19:09:25 -05:00
### Service Level Agreement countdown timer **(PREMIUM)**
2020-10-14 05:08:46 -04:00
2020-10-19 20:09:22 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/241663) in [GitLab Premium](https://about.gitlab.com/pricing/) 13.5.
2020-10-15 11:08:45 -04:00
2020-10-29 14:09:11 -04:00
You can enable the Service Level Agreement Countdown timer on incidents to track
the Service Level Agreements (SLAs) you hold with your customers. The timer is
automatically started when the incident is created, and shows the time
remaining before the SLA period expires. To configure the timer:
1. Navigate to **Settings > Operations** .
1. Scroll to **Incidents** and click **Expand** , then select the
**Incident settings** tab.
1. Select **Activate "time to SLA" countdown timer** .
1. Set a time limit in increments of 15 minutes.
1. Click **Save changes** .
After you enable the SLA countdown timer, the **Time to SLA** attribute is displayed
as a column in the Incidents List, and as a field on newly created Incidents. If
the incident isn't closed before the SLA period ends, GitLab adds a `missed::SLA`
label to the incident.
2020-10-15 11:08:45 -04:00
2020-10-15 20:08:56 -04:00
## Incident Actions
2020-10-15 11:08:45 -04:00
2020-10-28 14:08:52 -04:00
There are different actions available to help triage and respond to incidents.
2020-10-15 11:08:45 -04:00
2020-10-15 20:08:56 -04:00
### Assign incidents
2020-10-15 11:08:45 -04:00
2020-10-29 14:09:11 -04:00
Assign incidents to users that are actively responding. Select **Edit** in the
right-hand side bar to select or deselect assignees.
2020-10-15 11:08:45 -04:00
2021-01-25 13:09:03 -05:00
### Associate a milestone
Associate an incident to a milestone by selecting **Edit** next to the milestone feature in the right-hand side bar.
2020-10-15 20:08:56 -04:00
### Change severity
2020-10-15 11:08:45 -04:00
2020-10-29 14:09:11 -04:00
See [Incident List ](#incident-list ) for a full description of the severity levels available.
Select **Edit** in the right-hand side bar to change the severity of an incident.
2020-10-15 20:08:56 -04:00
2020-10-28 14:08:52 -04:00
### Add a to-do item
2020-10-15 20:08:56 -04:00
2020-10-29 14:09:11 -04:00
Add a to-do for incidents that you want to track in your to-do list. Click the
**Add a to do** button at the top of the right-hand side bar to add a to-do item.
2020-10-15 20:08:56 -04:00
### Manage incidents from Slack
Slack slash commands allow you to control GitLab and view GitLab content without leaving Slack.
Learn how to [set up Slack slash commands ](../../user/project/integrations/slack_slash_commands.md )
and how to [use the available slash commands ](../../integration/slash_commands.md ).
### Associate Zoom calls
GitLab enables you to [associate a Zoom meeting with an issue ](../../user/project/issues/associate_zoom_meeting.md )
for synchronous communication during incident management. After starting a Zoom
call for an incident, you can associate the conference call with an issue. Your
team members can join the Zoom call without requesting a link.
### Embed metrics in incidents
You can embed metrics anywhere [GitLab Markdown ](../../user/markdown.md ) is
used, such as descriptions, comments on issues, and merge requests. Embedding
metrics helps you share them when discussing incidents or performance issues.
You can output the dashboard directly into any issue, merge request, epic, or
any other Markdown text field in GitLab by
[copying and pasting the link to the metrics dashboard ](../metrics/embed.md#embedding-gitlab-managed-kubernetes-metrics ).
2020-10-14 05:08:46 -04:00
2020-10-15 20:08:56 -04:00
You can embed both [GitLab-hosted metrics ](../metrics/embed.md ) and
[Grafana metrics ](../metrics/embed_grafana.md ) in incidents and issue
templates.