Setting Up Pager Duty

Deploy and register the Unified Ticketing Plugin for PagerDuty in A1EventHandler.

3 min read Updated SS

Follow the below steps for setting up the Unified Ticketing Plugin (UTP):

  1. Navigate to the below folder,

    /<Installer path>/Appsone_Service/a1eventhandler/plugins
    

    Copy the utp-1.4.9.jar file to the folder.

  2. Register the UTP plugin in A1EventHandler.

    1. Create a common directory in the installer path to place the UTP-related files (use the mkdir command to create the folder):

      mkdir UTPFiles
      
    2. After the folder is created, place the files in the below path:

      <Installer path>/Appsone_Service/conf/UTPFiles
      
    3. Follow the below steps to copy files from the appsone-eventhandler container.

      To check the container ID, execute the below command:

      docker ps | grep appsone-event
      

      For example:

      d47451e469f1 appsone-event-handler:5.8.14 "/opt/appsone-event-…" 47
      hours ago Up 47 hours A1Eventhandler-5990cdc0-044c-9eca-5270-8413f72ec0fb
      

      To log in to the container, execute the below command:

      docker exec -it <container id> /bin/bash
      

      For example:

      docker exec -it d47451e469f1 /bin/bash
      

      Check the container path of the plugin-details.json file.

      /opt/appsone-event-handler/config/plugin-details.json
      

      To copy the plugin-details.json file from the container, execute the below command:

      docker cp <container id>:/opt/appsone-event-handler/config/plugin-details.json <Installer path>/Appsone_Service/conf/UTPFiles
      

      For example:

      docker cp d47451e469f1:/opt/appsone-event-handler/config/plugin-details.json <Installer path>/Appsone_Service/conf/UTPFiles
      
    4. Paste the copied files in the below path:

      <Installer path>/Appsone_Service/conf/UTPFiles
      
    5. Perform the JSON configuration for the UTP plugin by adding the following section to the plugin-details.json file:

      {
        "name": "UnifiedTicketingPlugin",
        "className": "com.appnomic.appsone.plugin.utp.UTPlugin",
        "eventType": [
          "NOTIFICATION_OUTPUT"
        ],
        "queueName": "a1-event-messages",
        "eventName": "UTPNotification",
        "contextDetails": {
          "healPermalink": "https://<Enter the HEAL UI IP and port>/heal-ui-service/#/problem/detail/{Account_Identifier}?signalId={Signal_ID}",
          "signalType": "EARLY_WARNING,Problem,Info",
          "redis.ssl": "true",
          "redis.username": "<Enter the username of Redis. Refer the table below>",
          "redis.password": "<Enter the password of Redis. Refer the table below>",
          "redis.nodes": "<Enter the nodes of Redis. Refer the table below>",
          "redis.cluster.mode": "true",
          "opensearch.nodes": "<Enter the nodes of OpenSearch. Refer the table below>",
          "opensearch.protocol": "<Enter the protocol of OpenSearch. Refer the table below>",
          "opensearch.username": "<Enter the username of OpenSearch. Refer the table below>",
          "opensearch.password": "<Enter the password of OpenSearch. Refer the table below>",
          "opensearch.per.route.connections": "20",
          "opensearch.max.connections": "50"
        }
      }
      

      To get the values of the attributes, refer to the below table:

Attributes Values
redis.username service/redis/username
redis.password service/redis/password/encrypted
redis.nodes service/redis/nodes
opensearch.nodes service/opensearch/nodes
opensearch.protocol service/opensearch/protocol
opensearch.username service/opensearch/username
opensearch.password service/opensearch/password/encrypted

For example, a completed configuration looks like this:

{
  "name": "UnifiedTicketingPlugin",
  "className": "com.appnomic.appsone.plugin.utp.UTPlugin",
  "eventType": [
    "NOTIFICATION_OUTPUT"
  ],
  "queueName": "a1-event-messages",
  "eventName": "UTPNotification",
  "contextDetails": {
    "healPermalink": "https://192.0.2.4:8990/heal-ui-service/#/problem/detail/{Account_Identifier}?signalId={Signal_ID}",
    "signalType": "EARLY_WARNING,Problem,Info",
    "redis.ssl": "true",
    "redis.username": "",
    "redis.password": "<base64-encoded-redis-password>",
    "redis.nodes": "192.0.2.10:6379,192.0.2.11:6379,192.0.2.12:6379",
    "redis.cluster.mode": "true",
    "opensearch.nodes": "192.0.2.20:9200,192.0.2.21:9200",
    "opensearch.protocol": "https",
    "opensearch.username": "<opensearch-username>",
    "opensearch.password": "<base64-encoded-opensearch-password>",
    "opensearch.per.route.connections": "20",
    "opensearch.max.connections": "50"
  }
}
  • Mount the following configuration files to the A1EventHandler docker container (add the configuration files to the volumes section):

    /opt/<Installer path>/nomadFile/A1EventHandler.nomad
    
  • Add the UTP files in the A1EventHandler nomad file.

    Note: Refer to the section "Data Template Usage" to know how to create a meta-template.

  • Mount the below files in the volumes section of the A1EventHandler nomad.

    Map the JSON file located at the directory plugin-details.json to the A1EventHandler:

    <Installer path>/Appsone_Service/conf/UTPFiles/plugin-details.json:/opt/appsone-event-handler/config/plugin-details.json
    

    Map the meta templates in the directory to the A1EventHandler:

    <Installer path>/Appsone_Service/conf/UTPFiles/meta-template/:/opt/appsone-event-handler/meta-template/
    

Next — Review the end-to-end connector workflow in the HEAL Connectors SOP, or see where ticketing plugins fit in the platform in the Agents & Connectors Overview.