Skip to content

Commit 3a8d495

Browse files
committed
add pagerduty, refactor instructions
1 parent b0c1563 commit 3a8d495

File tree

2 files changed

+52
-16
lines changed

2 files changed

+52
-16
lines changed

src/monitor/alerts/custom-alerts.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,31 @@ The Alerting table includes the following information about each alert:
2222
- **Notification channels**: Icons describing what notification channels you'll receive the alerts on - through a Slack webhook, Slack workflow, email, or in-app notification.
2323
- **Actions**: By selecting the menu icon for an individual alert, you can edit or delete it from the Alerting page. Only users with the Workspace Owner role can delete alerts created by other users.
2424

25-
> info "Slack and mailing list notification channels require additional setup"
26-
> Before sending an alert to Slack, you must first create a Slack webhook. For more information about Slack webhooks, see Slack's [Sending messages using incoming webhooks](https://api.slack.com/messaging/webhooks){:target="_blank”} documentation.
27-
>
28-
> While you can only enter one email address per alert when signing up for email alerts, you can send the alert to multiple users by entering the email address of a mailing list. To create a mailing list, refer to the documentation for your email provider, like Google's [Create a group & choose group settings](https://support.google.com/groups/answer/2464926?hl=en){:target="_blank”} for Gmail or Microsoft's [Create and manage distribution groups](https://support.microsoft.com/en-us/office/distribution-groups-e8ba58a8-fab2-4aaf-8aa1-2a304052d2de#bkmk_create){:target="_blank”} for Outlook.
25+
## Alert prerequisites
2926

30-
## Source volume alert
27+
First create webhooks or notification services in the tools you use as notification channels, then return to the Segment app to set up your alert.
28+
29+
### Set up your notification tools
30+
31+
The following tools require prerequisite setup before you can use them as notification channels:
32+
33+
- **Slack**: You must create a Slack webhook before setting up an alert in the Segment app. For more information, see Slack's [Sending messages using incoming webhooks](https://api.slack.com/messaging/webhooks){:target="_blank”} documentation.
34+
- **Email (optional)**: While you can only enter one email address at a time when signing up for email alerts, you can send the alert to multiple users by entering the email address of a mailing list. To create a mailing list, refer to the documentation for your email provider, like Google's [Create a group & choose group settings](https://support.google.com/groups/answer/2464926?hl=en){:target="_blank”} for Gmail or Microsoft's [Create and manage distribution groups](https://support.microsoft.com/en-us/office/distribution-groups-e8ba58a8-fab2-4aaf-8aa1-2a304052d2de#bkmk_create){:target="_blank”} for Outlook.
35+
- **PagerDuty**: You must create an integration key in PagerDuty before setting up an alert in the Segment app.
36+
37+
To create a PagerDuty integration key:
38+
39+
1. Open PagerDuty and navigate to to **Services > Service Directory**.
40+
2. Select the service that you'd like to send incidents to.
41+
3. Under Integrations, select **Add Integration**.
42+
4. Select **Events API v2**.
43+
5. PagerDuty displays a 32-character integration key.
44+
45+
## Create alerts
46+
47+
Once you've set up your notification services, return to the Segment app to create an alert.
48+
49+
### Source volume alert
3150
You can create an alert that notifies you when the volume of events received by your source in the last 24 hours changes beyond a threshold you set. For example, if you set a threshold of 4% and your source received 100 events over the first 24 hours, Segment would notify you the following day if your source ingested fewer than 96 or more than 104 events.
3251

3352
<img src="/docs/connections/images/alerting-source-alert.png" alt="A screenshot of the Source Volume alert creation sidesheet." width="470px" height="540px">
@@ -43,7 +62,7 @@ To create a source volume alert:
4362
- **In-app**: Select this to receive notifications in the Segment app. To view your notifications, select the bell next to your user icon in the Segment app.
4463
5. Click **Save**.
4564

46-
## Successful delivery rate alert
65+
### Successful delivery rate alert
4766

4867
You can create an alert that notifies you when the volume of events successfully received by your destination in the last 24 hours falls below a threshold you set. For example, if you set a threshold of 99%, Segment notifies you if your destination had a successful delivery rate of 98% or below.
4968

@@ -58,7 +77,7 @@ To create a successful delivery rate alert:
5877
5. Click **Save**.
5978

6079

61-
## Mapping-level successful delivery rate fluctuations
80+
### Mapping-level successful delivery rate fluctuations
6281

6382
You can create an alert that notifies you when the volume of events successfully received by your mapping in the last 24 hours falls below a threshold you set. For example, if you set a threshold of 99%, Segment notifies you if your destination had a successful delivery rate of 98% or below.
6483

@@ -74,7 +93,7 @@ To subscribe to alerts for successful delivery fluctuations at the mapping level
7493
- **In-app notifications**: Select this to receive notifications in the Segment app. To view your notifications, select the bell next to your user icon in the Segment app.
7594
5. Toggle the **Enable alert** setting on and click **Create**.
7695

77-
## Activation event health spikes or drops
96+
### Activation event health spikes or drops
7897

7998
You can create an Activation event health spikes or drops alert that notifies you when events sent from your audience to a downstream destination have failures to a destination above a certain threshold. For example, if you set a threshold of 4% and your destination received 100 events from your Audience over the first 24 hours, Segment would notify you the following day if your destination ingested fewer than 96 or more than 104 events.
8099

@@ -89,7 +108,7 @@ To create an Activation event health spikes or drops alert:
89108
- **In-app**: Select this to receive notifications in the Segment app. To view your notifications, select the bell next to your user icon in the Segment app.
90109
6. Click **Save**.
91110

92-
## Audience size change
111+
### Audience size change
93112
You can create an Audience size change alert that notifies you when your audience increases or decreases by a certain threshold. For example, if you set a change percentage of 4% and your destination had 100 members over the first 24 hours, Segment would notify you the following day if your audience had fewer than 96 or more than 104 members.
94113

95114
To create an Audience size change alert:

src/monitor/alerts/default-alerts.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,38 @@ The Alerting table includes the following information about each event:
2525
- **Alert name**: The type of alert; for example, "Audience created" or "Audience deleted".
2626
- **Last triggered**: The most recent date and time, in your local time zone, that the alert was triggered. Some alerts, like **Violations Detected**, trigger only once per day.
2727
- **Status**: Either **enabled**, if the alert is currently configured in your workspace, or **disabled**, if you're not configured to receive alerts for an event.
28-
- **Notification channels**: Icons describing what notification channels you'll receive the alerts on - through a Slack webhook, Slack workflow, email, or in-app notification.
28+
- **Notification channels**: Icons describing what notification channels you'll receive the alerts on - through a Slack webhook, Slack workflow, PagerDuty notification, email, or in-app notification.
2929
- **Actions**: By selecting the menu icon for an individual alert, you can edit or delete it from the Alerting page.
3030

31-
## Create a new alert
31+
## Create alerts
32+
33+
First create webhooks or notification services in the tools you use as notification channels, then return to the Segment app to set up your alert.
34+
35+
### Set up your notification tools
36+
37+
The following tools require prerequisite setup before you can use them as notification channels:
38+
39+
- **Slack**: You must create a Slack webhook before setting up an alert in the Segment app. For more information, see Slack's [Sending messages using incoming webhooks](https://api.slack.com/messaging/webhooks){:target="_blank”} documentation.
40+
- **Email (optional)**: While you can only enter one email address at a time when signing up for email alerts, you can send the alert to multiple users by entering the email address of a mailing list. To create a mailing list, refer to the documentation for your email provider, like Google's [Create a group & choose group settings](https://support.google.com/groups/answer/2464926?hl=en){:target="_blank”} for Gmail or Microsoft's [Create and manage distribution groups](https://support.microsoft.com/en-us/office/distribution-groups-e8ba58a8-fab2-4aaf-8aa1-2a304052d2de#bkmk_create){:target="_blank”} for Outlook.
41+
- **PagerDuty**: You must create an integration key in PagerDuty before setting up an alert in the Segment app.
42+
43+
To create a PagerDuty integration key:
44+
45+
1. Open PagerDuty and navigate to to **Services > Service Directory**.
46+
2. Select the service that you'd like to send incidents to.
47+
3. Under Integrations, select **Add Integration**.
48+
4. Select **Events API v2**.
49+
5. PagerDuty displays a 32-character integration key.
50+
51+
### Create an alert in the Segment app
52+
53+
Once you've set up any required notification services, like Slack webhooks, mailing lists, or PagerDuty services, use the Segment app to create your notification.
3254

3355
To create a new alert:
3456
1. From the Segment app, navigate to the **Monitor** tab and select **Alerts**.
3557
2. On the **Default** tab, identify the event you'd like to be alerted for and select the menu icon under the **Actions** tab.
3658
3. Click **Enable alert**.
3759

38-
> info "Slack and mailing list notification channels require additional setup"
39-
> Before sending an alert to Slack, you must first create a Slack webhook. For more information about Slack webhooks, see Slack's [Sending messages using incoming webhooks](https://api.slack.com/messaging/webhooks){:target="_blank”} documentation.
40-
>
41-
> While you can only enter one email address at a time when signing up for email alerts, you can send the alert to multiple users by entering the email address of a mailing list. To create a mailing list, refer to the documentation for your email provider, like Google's [Create a group & choose group settings](https://support.google.com/groups/answer/2464926?hl=en){:target="_blank”} for Gmail or Microsoft's [Create and manage distribution groups](https://support.microsoft.com/en-us/office/distribution-groups-e8ba58a8-fab2-4aaf-8aa1-2a304052d2de#bkmk_create){:target="_blank”} for Outlook.
42-
4360
## Alert descriptions
4461

4562
View a brief description of each alert type. 

0 commit comments

Comments
 (0)