Example Use Case for the Infrastructure Health Application

Follow

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.


Integration Instructions

   In PagerDuty

  1. Set up a new Twitter service in PagerDuty, or add a Twitter extension as a generic webhook to an existing service. 
  2. For a new Twitter service, select the custom event transformer integration type as the Integration Type.
  3. We suggest setting the notification urgency for the service as suppressed to prevent alerting for incoming Tweets. 
  4. On your Twitter service's individual page, select the Integrations tab and click on Custom Event Transformer
  5. Select Edit Integration
  6. Delete the Javascript that appears on the Edit Integration page 
  7. Here is an example of what can be pasted into the Javascript field. You can map these fields to meet your specific needs. Ensure that event_class is set to “tweet” in order to have twitter events appear as small blue “T”s in the Infrastructure Health Application interface so that they are easily differentiated from alerts.


    In Zapier

  8. Create a zap in Zapier to fire webhooks from Twitter to PagerDuty. Be sure to choose Twitter when prompted to select a trigger app.
  9. When asked to Select Twitter Trigger, opt for Search Mentions


  10. On the next screen you will be prompted to enter the search term you are interested in tracking in Twitter
  11. Next you will be asked to Choose an Action App. Select the Webhooks by Zapier option.
  12. 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 

  13. Go back to your Twitter service's individual service page and click on the Integrations tab. Then click on the Current Events Transformer.
  14. Copy the URL provided under Integration URL

    Return to Zapier

  15. Paste the PagerDuty URL into Zapier


  16. Test, and select field

 

 

Have more questions? Submit a request

Comments