• /
  • Log in
  • Free account

Incident workflows

EOL NOTICE

We're discontinuing support for several capabilities in November 2021, including the Incident Workflows beta. For more details, including how you can easily prepare for this transition, see our Explorers Hub post.

With incident workflow control when and where you want to receive notifications about issues, tunnel the right information to the relevant person or team, and enrich your issue's notifications with additional New Relic data.

Add a Workflow

The Workflows feature is located under the Alerts & AI menu.

  1. Go to one.newrelic.com, click Alerts & AI, in the left navigation under Enrich and Respond click Workflow, then click Add a workflow.

Tip

The maximum workflows you can add per environment is 1000

  1. Name your workflow. This field is mandatory and needs to be unique

  2. Workflows filters the issues you want to send to the relevant destination. You can send all issues by selecting Send all issues or you can build a query to filter the right issues.

  3. Build a query by selecting an attribute, operator and value/s to narrow down the right issues you want to be passed on.

  4. Optional:

  1. Click “update message” once completing the notifier requirements, then complete the workflow by clicking activate.

Tip

In any destination channel, start typing and a variable menu will open up. You will see the names of the variables, that at runtime will be replaced with the variable’s value/s. In order to use the enrichers’ results use their name.

Variables

To get information about the entity that violated a condition, you can use variables as part of the where statement of the query.

For example, to get a list of error logs for a specific issue use:

FROM log SELECT * where service.name = {{ entities.names }} AND level = ‘error’ LIMIT 10

This query returns the last 10 error logs for each notification sent for the entities that are associated with the issue. This would give you additional context as to what may have gone wrong and likely help you solve the issue faster. You can use any other entity properties in the same way.

An image showing where to input variables

An example of how to populate the field

Important

Note: In order to attain the value in the JSON format, you must specify the word JSON. Otherwise, you will get a comma delimited list (e.g. {{ json entities.Ids}} ).

For more variable options to find additional context, a comprehensive list of variables can be found here:

Key

Display Name (First word will be used for grouping)

accumulations.origin

Issue Origin

accumulations.source

Issue Source

activatedAt

Issue Activated At

dataMLModules.components

Machine Learning Components

dataMLModules.suggestedResponders

Machine Learning Suggested Responder

dataMLModules.goldenSignals

Machine Learning Golden Signals

annotations.description

Issue Description

annotations.title

Issue Title

closedAt

Issue ClosedAt

createdAt

Issue CreatedAt

entities.ids

Impacted Entities IDs

entities.types

Impacted Entities Types

entities.names

Impacted Entities Names

entities.kinds

Impacted Entities Kinds

incidentIds

Incident IDs

isCorrelated

Issue Is Correlated

issueId

Issue ID

labels.accountIds

Issue Environment Associated Account ID

labels.aggregationKeys

Labels Alerts Aggregation Key

labels.conditionNames

Labels Alert Condition Names

labels.originalAccountIds

Labels Account IDs

labels.policyIds

Labels Alert Policy IDs

labels.policyNames

Labels Alert Policy Names

priority

Issue Priority

state

Issue State

status

Issue Status

totalIncidents

Incident Count

triggerEvent

Issue Notification Trigger Event

triggeredAt

Issue Triggered At

updatedAt

Issue Updated At

workflowName

Workflow Name

Destinations

Destinations are unique identifiers and credentials for third-party systems. The destination you choose is the location where we send notifications.

Destinations are located under the Alerts and AI menu.

Add a Destination

  1. Go to one.newrelic.com, click Alerts & AI, in the left navigation under Enrich and Respond , then click Destinations.
  2. Select one of the destination types at the top of the destinations management screen.

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.