2022-06-13 14:02:31 -07:00
---
2024-02-08 15:59:28 -07:00
title: Get started with Grafana OnCall
menuTitle: Get started
description: A Guide for getting started with Grafana OnCall in Grafana Cloud
weight: 100
2022-06-13 21:21:58 -06:00
keywords:
2022-10-25 10:41:01 -04:00
- Get started
2024-02-08 15:59:28 -07:00
- OnCall
- Configure
- Escalation chains
- Integrations
- On-call schedules
canonical: https://grafana.com/docs/oncall/latest/set-up/get-started/
aliases:
- /docs/grafana-cloud/alerting-and-irm/oncall/set-up/get-started/
- /docs/grafana-cloud/alerting-and-irm/oncall//get-started/
- ../getting-started/ # /docs/oncall/< ONCALL_VERSION > /getting-started/
- ../get-started/ # /docs/oncall/< ONCALL_VERSION > /get-started/
2024-07-29 15:13:24 +01:00
refs:
routes:
- pattern: /docs/oncall/
destination: /docs/oncall/< ONCALL_VERSION > /configure/escalation-chains-and-routes/#routes
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/oncall/configure/escalation-chains-and-routes/#routes
escalation-chains-and-routes:
- pattern: /docs/oncall/
destination: /docs/oncall/< ONCALL_VERSION > /configure/escalation-chains-and-routes/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/oncall/configure/escalation-chains-and-routes/
escalation-chains:
- pattern: /docs/oncall/
destination: /docs/oncall/< ONCALL_VERSION > /configure/escalation-chains-and-routes/#escalation -chains
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/oncall/configure/escalation-chains-and-routes/#escalation -chains
slack-integration-for-grafana-oncall:
- pattern: /docs/oncall/
2024-08-22 01:58:26 -06:00
destination: /docs/oncall/< ONCALL_VERSION > /configure/integrations/references/slack/
2024-07-29 15:13:24 +01:00
- pattern: /docs/grafana-cloud/
2024-08-22 01:58:26 -06:00
destination: /docs/grafana-cloud/alerting-and-irm/oncall/configure/integrations/references/slack/
2024-07-29 15:13:24 +01:00
user-and-team-management:
- pattern: /docs/oncall/
destination: /docs/oncall/< ONCALL_VERSION > /manage/user-and-team-management/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/oncall/manage/user-and-team-management/
install-grafana-oncall-oss:
- pattern: /docs/oncall/
destination: /docs/oncall/< ONCALL_VERSION > /set-up/open-source/#install -grafana-oncall-oss
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/oncall/set-up/open-source/#install -grafana-oncall-oss
integrations:
- pattern: /docs/oncall/
destination: /docs/oncall/< ONCALL_VERSION > /configure/integrations/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/oncall/configure/integrations/
jinja2-templating:
- pattern: /docs/oncall/
destination: /docs/oncall/< ONCALL_VERSION > /configure/jinja2-templating/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/oncall/configure/jinja2-templating/
notify-people:
- pattern: /docs/oncall/
destination: /docs/oncall/< ONCALL_VERSION > /manage/notify/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/oncall/manage/notify/
on-call-schedules:
- pattern: /docs/oncall/
destination: /docs/oncall/< ONCALL_VERSION > /manage/on-call-schedules/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/oncall/manage/on-call-schedules/
2022-06-13 14:02:31 -07:00
---
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
# Get started with Grafana OnCall
2022-06-03 08:09:47 -06:00
2023-07-31 17:07:19 -03:00
Grafana OnCall was built to help DevOps and SRE teams improve their on-call management process and resolve incidents faster. With OnCall,
users can create and manage on-call schedules, automate escalations, and monitor incident response from a central view, right within
the Grafana UI. Teams no longer have to manage separate alerts from Grafana, Prometheus, and Alertmanager, lowering the risk of
missing an important update and limiting the time spent receiving and responding to notifications.
2022-06-03 08:09:47 -06:00
2023-06-27 09:57:27 +08:00
With a centralized view of all your alerts and alert groups, automated escalations and grouping, and on-call scheduling, Grafana
2022-12-01 14:26:54 +01:00
OnCall helps ensure that alert notifications reach the right people, at the right time using the right notification method.
2022-06-13 12:52:17 -06:00
2022-06-13 21:21:58 -06:00
The following diagram details an example alert workflow with Grafana OnCall:
2023-06-07 07:14:21 +03:00
< img src = "/static/img/docs/oncall/oncall-alert-workflow.png" class = "no-shadow" width = "700px" >
2022-06-13 21:21:58 -06:00
2022-12-01 14:26:54 +01:00
These procedures introduce you to initial Grafana OnCall configuration steps, including monitoring system integration,
2023-05-24 14:11:21 +03:00
how to set up escalation chains, and how to set up calendar for on-call scheduling.
2022-06-03 08:09:47 -06:00
2023-06-27 09:57:27 +08:00
## Grafana Cloud OnCall vs Open Source Grafana OnCall
2022-06-13 12:52:17 -06:00
2023-06-27 09:57:27 +08:00
Grafana OnCall is available both in Grafana Cloud and Grafana Open Source.
2022-06-03 08:09:47 -06:00
2023-06-27 09:57:27 +08:00
OnCall is available in Grafana Cloud automatically:
2022-06-03 08:09:47 -06:00
2023-07-13 15:38:35 +01:00
1. Create or log in into [Grafana Cloud account ](/auth/sign-up/create-user )
2023-06-27 09:57:27 +08:00
2. Sign in to your Grafana stack
3. Choose **Alerts and IRM** from the left menu
4. Click **OnCall** to access Grafana OnCall
2022-06-03 08:09:47 -06:00
2024-07-29 15:13:24 +01:00
Otherwise, to install Grafana OnCall, refer to [Install Grafana OnCall OSS ](ref:install-grafana-oncall-oss ).
2022-06-03 08:09:47 -06:00
2023-06-27 09:57:27 +08:00
## How to configure Grafana OnCall
2022-06-03 08:09:47 -06:00
2024-07-29 15:13:24 +01:00
* Users with [Admin role ](ref:user-and-team-management ) can configure Alert rules (Integrations, Routes, etc)
2023-06-27 09:57:27 +08:00
to define **when and which users to notify**
2024-07-29 15:13:24 +01:00
* OnCall users with [Editor role ](ref:user-and-team-management ) can work with Alerts Groups and set up personal settings,
2023-06-27 09:57:27 +08:00
e.g. **how to notify** .
2024-02-08 15:59:28 -07:00
> **Note:** If your role is **Editor**, you can skip to [Learn about the Alert Workflow](#learn-about-the-alert-workflow).
2023-06-27 09:57:27 +08:00
## Get alerts into Grafana OnCall and configure rules
Once you’ ve installed Grafana OnCall, or accessed it from your Grafana Cloud instance, you can begin integrating with
monitoring systems to get alerts into Grafana OnCall. Additionally, you can configure when, and which, users get notified, by setting templates, routes,
escalation chains, etc.
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
### Integrate with a monitoring system
2022-06-03 08:09:47 -06:00
2022-12-01 14:26:54 +01:00
Regardless of where your alerts originate, you can send them to Grafana OnCall via available integrations or customizable
webhooks. To start receiving alerts in Grafana OnCall, use the following steps to configure your first integration and
send a demo alert.
#### Configure your first integration
2022-06-03 08:09:47 -06:00
2023-06-27 09:57:27 +08:00
1. In Grafana OnCall, navigate to the **Integrations** tab and click ** + New integration**.
2022-06-13 12:52:17 -06:00
2. Select an integration from the provided options, if the integration you’ re looking for isn’ t listed, then select Webhook.
2023-06-27 09:57:27 +08:00
3. Click **How to connect** to view the instructions specific to your monitoring system
2022-06-03 08:09:47 -06:00
2022-08-25 12:34:49 +02:00
#### Send a demo alert
2022-06-03 08:09:47 -06:00
2023-06-27 09:57:27 +08:00
1. In the integration tab, click **Send demo alert** , review and modify the alert payload as needed, and click **Send**
2. Navigate to the **Alert Groups** tab to see your test alert firing
3. Explore the Alert Group by clicking on the title
4. Acknowledge and resolve the test alert group
2022-06-03 08:09:47 -06:00
2022-12-01 14:26:54 +01:00
For more information on Grafana OnCall integrations and further configuration guidance, refer to
2024-07-29 15:13:24 +01:00
[Grafana OnCall integrations ](ref:integrations )
2022-06-03 08:09:47 -06:00
2023-06-27 09:57:27 +08:00
### Review and modify alert templates
2023-03-09 04:38:20 +02:00
2023-06-27 09:57:27 +08:00
Review and customize templates to interpret monitoring alerts and minimize noise. Group alerts, enable auto-resolution,
customize visualizations and notifications by extracting data from alerts. See more details in the
2024-07-29 15:13:24 +01:00
[Jinja2 templating ](ref:jinja2-templating ) section.
2023-03-09 04:38:20 +02:00
2024-01-19 15:09:08 -06:00
### Configure Escalation Chains
2023-03-09 04:38:20 +02:00
2024-01-19 15:09:08 -06:00
Escalation Chains are a set of steps that define who to notify, and when.
2023-03-09 04:38:20 +02:00
2024-07-29 15:13:24 +01:00
For more information, refer to [Escalation chains ](ref:escalation-chains ).
2022-06-03 08:09:47 -06:00
2022-12-01 14:26:54 +01:00
Escalation Chains are customizable automated alert routing steps that enable you to specify who is notified for a certain
alert. In addition to escalation chains, you can configure Routes to send alerts to different escalation chains depending
on the alert details.
2022-06-03 08:09:47 -06:00
2022-12-01 14:26:54 +01:00
Once your integration is configured, you can set up an escalation chain to determine how alerts from your integration
are handled. Multi-step escalation chains help ensure thorough alert escalation to prevent alerts from being missed.
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
To configure Escalation Chains:
2022-12-01 14:26:54 +01:00
2022-06-13 12:52:17 -06:00
1. Navigate to the **Escalation Chains** tab and click ** + New Escalation Chain**
2. Give your Escalation Chain a useful name and click **Create**
3. Add a series of escalation steps from the available dropdown options.
2022-12-01 14:26:54 +01:00
4. To link your Escalation Chain to your integration, navigate back to the **Integrations tab** , Select your newly
created Escalation Chain from the “**Escalate to**” dropdown.
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
Alerts from this integration will now follow the escalation steps configured in your Escalation Chain.
2022-06-03 08:09:47 -06:00
2024-07-29 15:13:24 +01:00
For more information on Escalation Chains and more ways to customize them, refer to [Escalation chains ](ref:escalation-chains )
2022-06-03 08:09:47 -06:00
2024-02-08 15:59:28 -07:00
Routes define which messenger channels and escalation chains to use for notifications.
2024-07-29 15:13:24 +01:00
For more information, refer to [Routes ](ref:routes ).
2023-06-27 09:57:27 +08:00
### Learn about the Alert Workflow
2024-02-08 15:59:28 -07:00
* All Alerts in OnCall are grouped into Alert Groups.
2023-06-27 09:57:27 +08:00
An Alert Group can have the following, mutually exclusive states:
* **Firing:** Once Alert Group is registered, Escalation Policy associated with it is getting started.
Escalation policy will work while Alert Group is in this status.
* **Acknowledged:** Ongoing Escalation Chain will be interrupted. Unacknowledge will move Alert Group to
the "Firing" state and will re-launch Escalation Chain.
* **Silenced:** Similar to "Acknowledged" but designed to be temporary with a timeout. Once time is out, will
re-launch Escalation Chain and move Alert Group
to the "Firing" state.
* **Resolved:** Similar to "Acknowledged".
2023-11-10 12:40:04 -08:00
**Possible transitions**:
2023-11-27 18:36:53 +08:00
2023-06-27 09:57:27 +08:00
* Firing -> Acknowledged
* Firing -> Silenced
* Firing -> Resolved
* Silenced -> Firing
* Silenced -> Acknowledged
* Silenced -> Resolved
* Acknowledged -> Silenced
* Acknowledged -> Firing
* Acknowledged -> Resolved
* Resolved -> Firing
Transition changes trigger Escalation Chains to launch, with a few-second delay (to avoid unexpected notifications).
2022-06-13 12:52:17 -06:00
## Get notified of an alert
2022-06-03 08:09:47 -06:00
2022-12-01 14:26:54 +01:00
In order for Grafana OnCall to notify you of an alert, you must configure how you want to be notified. Personal notification
policies, chatops integrations, and on-call schedules allow you to automate how users are notified of alerts.
2022-06-03 08:09:47 -06:00
2022-08-25 12:34:49 +02:00
### Configure personal notification policies
2022-12-01 14:26:54 +01:00
Personal notification policies determine how a user is notified for a certain type of alert. Get notified by SMS,
2023-06-27 09:57:27 +08:00
phone call, Slack mentions, or mobile push notification. Administrators can configure how users receive notifications
for certain types of alerts.
2022-12-01 14:26:54 +01:00
For more information on personal notification policies, refer to
2024-07-29 15:13:24 +01:00
[Manage users and teams for Grafana OnCall ](ref:user-and-team-management )
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
To configure users personal notification policies:
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
1. Navigate to the **Users** tab in Grafana OnCall
2. Select a user from the user list and click **Edit**
3. Configure **Default Notifications** and **Important Notification**
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
### Configure Slack for Grafana OnCall
2022-06-03 08:09:47 -06:00
2022-12-01 14:26:54 +01:00
Grafana OnCall integrates closely with your Slack workspace to deliver alert notifications to individuals, user groups,
and channels. Slack notifications can be triggered by steps in an escalation chain or as a step in users personal
notification policies.
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
To configure Slack for Grafana OnCall:
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
1. In OnCall, click on the ChatOps tab and select Slack in the side menu.
2. Click Install Slack integration.
3. Read the notice and confirm to proceed to the Slack website.
4. Sign in to your organization's Slack workspace.
5. Click Allow to allow Grafana OnCall to access Slack.
6. Ensure users verify their Slack accounts in their user profile in Grafana OnCall.
2022-06-03 08:09:47 -06:00
2022-12-01 14:26:54 +01:00
For further instruction on connecting to your Slack workspace, refer to
2024-08-22 01:58:26 -06:00
[Slack integration for Grafana IRM ](ref:slack-integration-for-grafana-oncall ).
2022-06-03 08:09:47 -06:00
2024-02-08 15:59:28 -07:00
Grafana OnCall also supports other ChatOps integration like Microsoft Teams and Telegram.
2024-07-29 15:13:24 +01:00
For a full list of supported integrations, refer to [Notify people ](ref:notify-people ).
2023-05-24 19:54:12 +08:00
2022-06-13 12:52:17 -06:00
### Add your on-call schedule
2022-06-03 08:09:47 -06:00
2022-12-01 14:26:54 +01:00
Grafana OnCall allows you to manage your on-call schedule in your preferred calendar app such as Google Calendar or
Microsoft Outlook.
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
To integrate your on-call calendar with Grafana OnCall:
2022-06-03 08:09:47 -06:00
2022-06-13 12:52:17 -06:00
1. In the **Schedules** tab of Grafana OnCall, click ** + Add team schedule for on-call rotation**.
2. Provide a schedule name.
2023-05-24 19:54:12 +08:00
3. Configure the rest of the schedule settings and click Create Schedule
2022-06-03 08:09:47 -06:00
2024-07-29 15:13:24 +01:00
For more information about OnCall schedules, refer to [On-call schedules ](ref:on-call-schedules ).