Configure a webhook in AppDynamics

Configure webhook endpoints so that AppDynamics can use the endpoint to communicate with Incident Response.

Before you begin

Role required: Responder, Manager, or Administrator

About this task

Note: While this integration with a third-party product is supported, the documentation here is based upon information provided by that third-party. More current information about the operation of that third-party’s system may be available from them directly.

Procedure

  1. Log in to your AppDynamics application console.
  2. Navigate to the Alert & Respond tab.
  3. Select the application for which you want to generate alerts in Incident Response.
  4. Click HTTP Request Templates.
    HTTP Request Templates page.
  5. Create a new HTTP request template by clicking New.
  6. On the Create HTTP Request Template page, fill in the fields.
    Table 1.
    Field Description
    Name Name of your template.
    Custom Templating Variables Custom templating variables that is used in the request URL, payload, and headers. The variable is replaced by its value at run time.
    Request URL URL for the request.
    1. From the Method list, select POST.
    2. In the Raw URL field, paste your webhook URL from Incident Response.
    3. From the URL Encoding list, select UTF-8.
    Authentication Authentication for your HTTP request.

    This field should be left empty as the webhook contains the API key.

    Custom Request Headers Custom headers for the HTTP requests. Custom request headers can contain either custom templating variables or predefined templating variables.
    Payload Payload to be included in the HTTP request.
    1. From the MIME Type list, select application/json.
    2. Paste the payload from Incident Response in the text field.
    Response Handling Criteria Criteria to classify the HTTP response as a success or failure. Failure criteria are evaluated before Success criteria.
    Settings Settings to trigger the event.

    Select the One Request Per Event check box.

  7. Click Save.
  8. From the Alert & Respond tab, click Health Rules.

    Health rules let you specify the parameters that represent what you consider normal or expected operations for your environment.

  9. Select the application for which you want to generate alerts in Incident Response from the list.
    Health Rules page.
  10. To create a new health rule, click Create.
    Enter the required fields for your health rule. For detailed information, see Health Rules.
  11. Click Save.
  12. From the Alert & Respond tab, click Policies.

    A policy consists of a trigger based on one or more events and an action in response to the trigger.

  13. Select the application for which you want to generate alerts in Incident Response from the list.
    Policies page.
  14. To create a new policy, click Create.
  15. Select the events that will trigger the policy.

    The events can be health-rule violation events or other types of events, such as hitting a slow transaction threshold or surpassing a resource pool limit. For more information, see Policies.

  16. On the Actions tab, click Add to create a policy action.
  17. From the Select Actions dialog box, click Create.
  18. From the Create Action dialog box, select Make an HTTP Request.
    Create Action dialog box.
  19. Click OK.
  20. In the Create HTTP Action dialog box, enter a name and select the HTTP request template containing the webhook and payload from Incident Response.
    Edit HTTP Action dialog box.
  21. Click Save.