# Integrating Loadster with PagerDuty

> Integrate Loadster with PagerDuty to create incidents when a monitor fails, and automatically resolve them when it recovers.

Source: https://loadster.com/manual/integration-with-pagerduty/

[PagerDuty](https://pagerduty.com/?utm_medium=partner&utm_source=Loadster) sits at the heart of your technology ecosystem and helps you quickly pinpoint outages and other issues.

If you're using Loadster for your site and API monitoring, connecting your PagerDuty account will ensure that your
site monitors create and resolve incidents in PagerDuty whenever one of your monitors fails or recovers. From there,
PagerDuty takes over to notify the right person on your team to fix it.

## Benefits of Using PagerDuty With Loadster

Using PagerDuty with Loadster monitoring will help you to...

* Respond quickly to site outages, broken API endpoints, and any other issue that your Loadster monitors detect.
* Route the incident to the best person or team in your organization to diagnose and fix the issue.
* Collaborate with others on your team to resolve API outages and web application issues.
* Keep track of all kinds of incidents in one place.
* Track time to resolution and other metrics, so you can level up your team's ability to respond quickly to problems.

## How the PagerDuty Integration Works

Here's the short version of how the Loadster PagerDuty integration works.

1. When a Loadster monitor detects a problem with your site or application, it will create an incident in PagerDuty.
2. PagerDuty will route the incident to the appropriate person or team to deal with the issue.
3. In PagerDuty, you can reassign or escalate the incident.
4. When your Loadster monitor detects a recovery, it will automatically resolve the incident in PagerDuty.

## PagerDuty Integration Requirements

To enable the Loadster PagerDuty integration, you'll need:

* A PagerDuty account
* A Loadster account with [at least one monitor](https://loadster.com/manual/monitoring/)

## Getting Help with the PagerDuty Integration

If you need help with this integration, please contact [help@loadster.com](mailto:help@loadster.com). We'll be happy
to assist!

## PagerDuty Integration Walkthrough

Setting it up is pretty easy! It just takes a few steps on each side.

### In PagerDuty

First, on the PagerDuty side:

1. From the **Configuration** menu, select **Services**.
2. There are two ways to add an integration to a service:
   * **If you are adding your integration to an existing service**: Click the **name** of the service you want to add the integration to. Then, select the **Integrations** tab and click the **New Integration** button.
   * **If you are creating a new service for your integration**: Please read our documentation in section [Configuring Services and Integrations](https://support.pagerduty.com/docs/services-and-integrations?utm_medium=partner&utm_source=Loadster#section-configuring-services-and-integrations) and follow the steps outlined in the [Create a New Service](https://support.pagerduty.com/docs/services-and-integrations?utm_medium=partner&utm_source=Loadster#section-create-a-new-service) section, selecting Loadster as the **Integration Type** in step 4. Continue with the **In Loadster** section (below) once you have finished these steps.
3. Enter an **Integration Name** in the format `monitoring-tool-service-name` (e.g.  Loadster-Monitors) and select  **Loadster**  from the Integration Type menu.
4. Click the **Add Integration** button to save your new integration. You will be redirected to the Integrations tab for your service.
5. An **Integration Key** will be generated on this screen. Keep this key saved in a safe place, as it will be used when you configure the integration with  Loadster  in the next section.

_Figure: Copy integration key_


### In Loadster

Then, on the Loadster side:

1. Go to the <a href="https://loadster.com/dashboard/integrations">Integrations</a> page of your dashboard.
2. Click the **Enable PagerDuty** button in the **PagerDuty** section.
3. Enter the **Integration Key** that you just created in PagerDuty.
4. Save the integration settings. You're all set!

Now, whenever one of your monitors detects a failure, it will automatically create an incident in PagerDuty. When the
failing monitor recovers, it will mark the incident resolved.

## How to Disable the PagerDuty Integration

To stop Loadster from creating incidents in PagerDuty, go to the <a href="https://loadster.com/dashboard/integrations">Integrations</a> page
and click the remove button to disable the PagerDuty integration and discard the **Integration Key**.

