Icon

Comments have been closed on this page. Please use AppMon & UEM Plugins forum for questions about this plugin.

Overview

Allows dynaTrace incidents to be forwarded to PagerDuty via PagerDuty REST API.

Checks the API URL first using a GET request then processes the incident using POST.

Version 1.1 - Now with auto-resolving incidents!

Plugin Details

Author

Josh Cho (haeun.cho@dynatrace.com)

dynaTrace Versions

>=5.6

License

dynaTrace BSD

Support

Community Supported

Known Problems

None

Release History

2014-03-14 Initial Release

2015-03-04 Version 1.1

Download

com.dynatrace.pagerduty_1.1.0.jar

Installation

Import the Plugin into the dynaTrace Server. For details how to do this please refer to the Online Documentation on Plugin Management.

Configuration

  1. Select the incident you want to set up PagerDuty alerting against and open the edit dialog.
  2. In the 'Actions' tab, ensure the PagerDuty Plugin is added and set to fire 'on incident begin'.
  3. Ensure correct API key is added from your PagerDuty services. Optionally set URL and/or TCP timeout.
  4. Set incident action to 'on incident begin' and the plugin will just forward incidents.
    Set incident action to 'on incident begin and end' and the plugin will auto-resolve closed incidents.

The following screenshot shows an example configuration:

 

Logs should indicate each incident that is forwarded:

2014-03-14 09:07:51 INFO [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Successfully forwarded incident to PagerDuty for incident: URL Monitor/HostReachable : HostReachable (easyTravel Availability Monitor@localhost) easyTravel Availability Monitor lower bound exceeded. The incident key is: bba7de8b04364ab2874802eb7c0442a4

 

Set logs to FINE if more detail is required:

2014-03-14 09:07:50 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Checking connectivity...
2014-03-14 09:07:50 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Sending 'GET' request to URL : https://events.pagerduty.com/generic/2010-04-15/create_event.json
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Response Code : 400
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Incident URL Monitor/HostReachable : HostReachable (easyTravel Availability Monitor@localhost) easyTravel Availability Monitor lower bound exceeded triggered.
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Using API KEY - 67316670793b407e897ad09263b179a5
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Measure HostReachable (easyTravel Availability Monitor@localhost) violoated threshold.
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Measure HostReachable violoated threshold.
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] JSON String is: {"service_key":"67316670793b407e897ad09263b179a5","details":{"Severity":"Informational","Incident Rule":"easyTravel Availability","Violation":"HostReachable violated threshold"},"client":"dynaTrace","description":"URL Monitor\/HostReachable : HostReachable (easyTravel Availability Monitor@localhost) easyTravel Availability Monitor lower bound exceeded","event_type":"trigger","client_url":"slo124829n01"}
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Trying to get output stream...
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Trying to write to output stream
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Trying to connect...
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Response Code : 200
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Status: success
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Message: Event processed
2014-03-14 09:07:51 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Incident Key: bba7de8b04364ab2874802eb7c0442a4

Feedback

Please provide feedback on this plugin either by commenting on this page or by comments on the Community Plugins and Extensions

Contribution

Feel free to contribute any changes on Github

  1. Anonymous (login to see details)

    Installed the Pagerduty Plugin and we have multiple services with them to match multiple system profiles within Dynatrace.  The challenge that we are facing is that we can only insert one API/Service key to the server.  Does anyone have any suggestions to incorporate it to a system profile?

  2. Anonymous (login to see details)

    FYI: Link to the "Dynatrace Integration Guide" hosted on PagerDuty's website:
    https://www.pagerduty.com/docs/guides/dynatrace-integration-guide/ 

  3. Anonymous (login to see details)

    Hello on Dynatrace 6.3 we are getting below error for SSL, we did import root and pager duty cert on our server

    2016-11-23 14:33:29 FINE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Sending 'GET' request to URL : https://events.pagerduty.com/generic/2010-04-15/create_event.json
    2016-11-23 14:33:30 SEVERE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] Unable to connect to https://events.pagerduty.com/generic/2010-04-15/create_event.json
    2016-11-23 14:33:30 SEVERE [PagerDutyActionPlugin@com.dynatrace.pagerduty.action] javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty