Skip to main content

Opsgenie

A system task to send alerts to Opsgenie in the event of workflow failures. This task can be used with the Query Processor task, which fetches metadata details to trigger alerts to Opsgenie as required.

Definitions

   {
"name": "ops_genie_task",
"taskReferenceName": "ops_genie_task_ref",
"inputParameters": {
"alias": "${workflow.input.opsGenieAlias}",
"description": "${query_processor_ref.output.result.workflowsUrl}",
"visibleTo": "${workflow.input.opsGenieVisibleTo}",
"message": "Failed Worklows detected",
"responders": "${workflow.input.opsGenieResponders}",
"details": {
"key": "value"
},
"priority": "${workflow.input.opsGeniePriority}",
"entity": "${workflow.input.opsGenieEntity}",
"tags": "${workflow.input.opsGenieTags}",
"actions": "${workflow.input.opsGenieActions}",
"token": "${workflow.secrets.OPS_GENIE_TOKEN}"
},
"type": "OPS_GENIE"
}

Input Parameters

AttributeDescription
aliasA custom identifier that will be generated in Opsgenie when alerts are triggered from Conductor. These aliases are user-defined and can be up to 512 characters long.
descriptionDescription of the alert, limited to 15,000 characters in Opsgenie.
visibleToUsers in Opsgenie who can view the alerts. Can be a string, number, boolean, object/array, or null.
respondersNames of the responders to be notified. Can be a string, number, boolean, object/array, or null.
detailsAdditional details for the alert. Can be a string, number, boolean, object/array, or null.
messageMessage to be displayed in Opsgenie, providing a quick overview of the alert.
actionsOpsgenie actions to be executed on the alert. Can be a string or object/array.
priorityPriority of the alert.
entityDomain the alert is related to, such as the server's name or application.
tokenAPI token for integrating with Opsgenie. Refer to the official Opsgenie documentation to get the API keys.

Note:Save the token as a secret in the Conductor for enhanced security.
tagsTags to be added to the alert in Opsgenie. Can be a string or object/array.
cacheConfigEnabling this option allows saving the cache output of the task. On enabling, you can provide the following parameters:

Examples



  1. Add task type Opsgenie.
  2. Configure the query parameters.

Adding OpsGenie Task

See the workflow alerting example with Opsgenie for a detailed demonstration of leveraging this task.