Once you have confirmed that the source platform supports sending events to PagerDuty, follow these steps:
From your RudderStack dashboard, add a source. Then, from the list of destinations, select PagerDuty.
Assign a name to the destination and click Continue.
Connection settings
To successfully configure PagerDuty as a destination, you will need to configure the following settings:
PagerDuty Routing Key: Enter the integration key associated with your PagerDuty service. Refer to the FAQ section for more information on how to obtain it.
dedup_key Field Identifier: Enter a dedup_key which acts as the event identifier and is used while updating, resolving, or acknowledging an event. You can provide any value in this field. If not provided, PagerDuty automatically generates and assigns a dedup_key to the event.
You can send an alert event to report a new problem, or update an ongoing problem, depending on the event type.
A sample track call for sending an alert event is shown below:
rudderanalytics.track("apiSecret is not present",{action:"trigger",dedupKey:"9116b734-7e6b-4497-ab51-c16744d4487e",severity:"critical",component:"ui",source:"rudder-webapp",group:"destination",class:"connection settings",customDetails:{"ping time":"1500ms","load avg":0.75,},imageURLs:[{src:"https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg",alt:"first image",},{src:"https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1",alt:"second image",},],linkURLs:[{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error",text:"Js Object Error",},{href:"https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack",text:"Stack Overflow Error",},],});
Property mappings
The following table lists the mappings between RudderStack and PagerDuty properties for alert events:
RudderStack property
PagerDuty property
event Required
payload.summary
properties.severity Required
payload.severity
properties.source Required
payload.source
properties.action Required
event_action
properties.linkURLs
links
properties.imageURLs
images
originalTimeStamp
payload.timestamp
properties.group
payload.group
properties.class
payload.class
properties.component
payload.component
properties.client
client
properties.clientUrl
client_url
properties.customDetails
payload.custom_details
Change events
You can send a change event to send information about the recent changes, such as code deployment, and system configuration changes from any system that can make an outbound HTTP connection.
A sample track call for sending a change event is shown below:
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.