With workflows you 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.
What is an issue?
Issues are groups of incidents that describe the underlying problem of your symptoms. When a new incident is created, incident intelligence opens an issue and evaluates other open issues for correlations. For more information see Use Incident Intelligence.
For a look at workflows and destinations in action, watch this short YouTube video (3:54 minutes):
If you haven't already, create your free New Relic account below to start monitoring your data today.
How are workflows triggered?
A workflow is triggered by issue events for issues that match the workflow filter and their matching notification triggers. The workflow is configured with recommended triggers by default, but you can control when to trigger a notification for each destination by clicking on the 3 dots and then choosing Notify when. The Activated notification trigger must also be enabled.
The following events trigger the workflow and send notifications to the relevant destination end-points:
Notification trigger | Description | Example | Destinations notified by default |
---|---|---|---|
Activated | An issue is activated | The issue state changes from CREATED to ACTIVATED | All the destinations |
Acknowledged | An issue is acknowledged by a user either through the a notification, the issue page, or a third party integration | The issue has been seen by a user and marked as acknowledged | Webhook, PagerDuty, Slack, Email, Mobile App |
Closed | The issue has been closed. | The issue has been closed due to closing all its incidents, end of TTL, or has been | All the destinations |
Priority changed | The issue's priority has been raised | An incident in the issue has moved from High priority and become a Critical priority issue | Webhook, Event Bridge, ServiceNow, Jira |
Other updates | An incident got added to the issue, an incident was closed, or a different issue was merged to this one | An incident has been resolved | Webhook, Event Bridge, ServiceNow, Jira, PagerDuty (account integration) |
Required capabilities
Using workflows require specific capabilities.
- To access destinations:
View
capabilities forApplied intelligence > Destinations
orAlerts
. - To access workflows:
View
capabilities forApplied intelligence > Workflows
. - To create workflows:
Modify
capabilities forApplied intelligence > Workflows
andApplied intelligence > Channels
. - To modify workflows:
Modify
capabilities forApplied intelligence > Workflows
and all capabilities forApplied intelligence > Channels
andapplied_intelligence.create.workflow
. - To delete workflows:
Delete
capabilities forApplied intelligence > Workflows
andApplied intelligence > Channels
.
Add a workflow
The workflows feature is located under the Alerts & AI menu.
Go to one.newrelic.com > Alerts & AI > Enrich and Notify > Workflow > Add a workflow.
Name your workflow. This field is mandatory and needs to be unique.
With workflows, filter your issues and send them to the relevant destination. You can build a query to filter the right issues.
Tip
To set up seperate notifications on
WARNING
incidents, filter by issues with a priority equal toHIGH (Warning)
.Build a query by selecting an attribute, operator, and value/s to narrow down the right issues you want to be passed on.
Tip
The workflows filter auto populates with data from past issues as well as some static values from the condition metadata (such as condition name). If you can't find the value you're looking for, type it in and select Enter new. A warning that the filter doesn't match any past issue sometimes occurs.
Recommended: filter issues by team tag so all teams can be notified when their entities are included in an issue. Steps can be found in the demo below:
For some tips on using tags, see this support forum post on workflow patterns.
Optional: Enrich your data.
Notify: Choose one or more destinations and add an optional message.
Tip
In any destination channel, start typing and a variable menu will open up. You'll see the names of the variables, which will be replaced with the variable's values at runtime. To use the enrichers' results, use their name.
Click update message once completing the notifier requirements.
Optional: Test your workflow. We'll use existing data from your account to send a sample notification with your new configuration. The test only works if there are existing issues that match the filter. If there isn't any data, you'll see this message:
We don't see any issues matching your filter. That doesn't mean it won't work
.Click activate to complete the workflow.
Important
The initial limit to the number of workflows you can add is 1000 per account and the initial limit to filter size is 4096 characters per workflow. Please reach out to your account representative if you would like this number to be increased.
Issue notifications log
The issue notification log provides users a detailed record to keep track of all notifications generated by workflows. This information troubleshoots issues, monitors workflow performance, and ensures that notifications are being sent to the correct destinations. As a result, users can quickly identify any issues that may arise and take corrective action as needed.
To access the issue notification log, go to one.newrelic.com > Alerts & AI > Workflows, then click Issue notification log.
Navigating the issue notification log
The issue notification log displays the following columns:
- Time: This column displays the time the workflow notification was sent.
- Status: This column displays the status of the notification.
- Sent: The notification was sent successfully from New Relic.
- Failed: The notification was not sent successfully from New Relic.
- Deferred: The notification was sent successfully from New Relic but dropped by the vendor.
- Destination: This column displays the destination type receiving the workflow notification (for example, Slack or email).
- Issue Name: This column displays the name of the issue that triggered the workflow notification.
- Trigger Event: This column displays the issue event that triggered the workflow notification. Clicking on the event will provide more information on how workflows are triggered.
- Workflow: This column displays the workflow that triggered the notification.
- Error Details: This column displays additional details if the notification failed.
- Notification Result: This column displays a link to evidence in the third party (for example, a Slack thread or JIRA ticket) if the notification was sent successfully.
View additional details
Users can view additional details by clicking on any row in the issue notifications log. This will display the error details (if applicable) and a link to the notification in the third-party.