Integrating inbound Tweets into your PagerDuty Infrastructure Health Application is a great way to track user responses to deploys and outages. Twitter does not support webhooks, so an intermediary tool is necessary in order to send events from Twitter to PagerDuty. You can use a tool like Zapier or Microsoft Flow. The following guide provides an example of how to integrate Twitter with the Infrastructure Health Application using Zapier.
- Set up a new Twitter service in PagerDuty, or add a Twitter extension as a generic webhook to an existing service.
- For a new Twitter service, select the custom event transformer integration type as the Integration Type.
- We suggest setting the notification urgency for the service as suppressed to prevent alerting for incoming Tweets.
- On your Twitter service's individual page, select the Integrations tab and click on Custom Event Transformer
- Select Edit Integration
- Create a zap in Zapier to fire webhooks from Twitter to PagerDuty. Be sure to choose Twitter when prompted to select a trigger app.
- When asked to Select Twitter Trigger, opt for Search Mentions
- On the next screen you will be prompted to enter the search term you are interested in tracking in Twitter
- Next you will be asked to Choose an Action App. Select the Webhooks by Zapier option.
- You will be prompted to Choose Action. For this step, click the radio button to select POST: Fire off a single POST request as a form or JSON.
Return to PagerDuty
- Go back to your Twitter service's individual service page and click on the Integrations tab. Then click on the Current Events Transformer.
- Copy the URL provided under Integration URL
Return to Zapier
- Paste the PagerDuty URL into Zapier
- Test, and select field