Skip to content

Commit 60c7256

Browse files
authored
Workato: Fix monitor definition which fails to match when stop_cause is None; update README (DataDog#20863)
1 parent f2fcde7 commit 60c7256

6 files changed

Lines changed: 52 additions & 29 deletions

File tree

workato/README.md

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,23 @@ understand trends and issues.
1818
### Generate API credentials in Workato
1919

2020
1. Log in to [Workato][2] as an administrator.
21-
2. Navigate to the **Workspace Admin** tab. > API Clients**.
21+
2. Navigate to the **Workspace Admin** > **API Clients** tab.
2222
3. (Create a Client Role with sufficient permission) Click **Client Roles** tab.
2323
4. Click **+ Add client role**.
2424
1. Check the following boxes to allow minimal read access:
25-
```
26-
Projects
27-
Project Assets
28-
List Projects
29-
List Folders
30-
Connections
31-
List
32-
Recipes
33-
List
34-
Get job counts for recipes
35-
Get details
36-
Recipe Versions
37-
List
38-
Jobs
39-
List
40-
Get job
41-
Admin
42-
Environment Management
43-
Tags
44-
List tags
45-
```
25+
26+
| Section | Permission |
27+
|----------|-------------------------------------------|
28+
| Projects | Project Assets > List Projects |
29+
| Projects | Project Assets > List Folders |
30+
| Projects | Connections > List |
31+
| Projects | Recipes > List |
32+
| Projects | Recipes > Get job counts for recipes |
33+
| Projects | Recipes > Get details |
34+
| Projects | Recipe Versions > List |
35+
| Projects | Jobs > List |
36+
| Projects | Jobs > Get job |
37+
| Admin | Environment Management > Tags > List tags |
4638
2. Edit the role name, and click **Save changes**.
4739
7. Select the **API Clients** tab.
4840
8. Click **+ Add API Client**, and then enter the required information:

workato/assets/logs/workato_tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ tests:
9595
"id": 62605996,
9696
"folder_id": 25077197,
9797
"tags": [
98-
"custfacing"
98+
"critical"
9999
]
100100
},
101101
"project": {
@@ -138,7 +138,7 @@ tests:
138138
job_succeeded_count: 27941
139139
lifetime_task_count: 55882
140140
tags:
141-
- "custfacing"
141+
- "critical"
142142
started_at: "2025-06-14T16:06:52.000-07:00"
143143
status: "error"
144144
title: "Webhooks: new event via webhook: Accept=*/*, Content length=35, and Content type=application/x-www-form-urlencoded"
@@ -157,7 +157,7 @@ tests:
157157
"description" : "",
158158
"id" : 62605996,
159159
"folder_id" : 25077197,
160-
"tags" : [ "custfacing" ]
160+
"tags" : [ "critical" ]
161161
},
162162
"project" : {
163163
"name" : "Backend Batch Ops",

workato/assets/monitors/critical_recipe_offline.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"version": 2,
33
"created_at": "2025-06-09",
4-
"last_updated_at": "2025-06-09",
4+
"last_updated_at": "2025-07-27",
55
"title": "Critical recipe is offline",
66
"description": "A recipe which has been tagged as critical within Workato is offline.",
77
"definition": {
8-
"id": 174536177,
8+
"id": 178957050,
99
"name": "Critical Workato Recipe is {{#is_alert}}offline{{/is_alert}} {{#is_alert_recovery}}online{{/is_alert_recovery}}",
1010
"type": "query alert",
11-
"query": "avg(last_5m):avg:workato.recipes.failure{workato_tags:*custfacing*} by {name,stop_cause} > 0",
12-
"message": "{{#is_alert}}The recipe {{name}} is offline with stop cause of {{stop_cause}}{{/is_alert}}\n{{#is_alert_recovery}}The recipe {{name}} is online{{/is_alert_recovery}}\n\n@email@example.com",
11+
"query": "avg(last_5m):avg:workato.recipes.failure{workato_tags:*critical*} by {name,stop_cause} > 0",
12+
"message": "{{#is_alert}}The recipe {{name}} is offline with stop cause of {{stop_cause}}{{/is_alert}}\n{{#is_alert_recovery}}The recipe {{name}} is online{{/is_alert_recovery}}\n@email@example.com",
1313
"tags": [
1414
"source:workato"
1515
],
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": 2,
3+
"created_at": "2025-07-27",
4+
"last_updated_at": "2025-07-27",
5+
"title": "Critical recipe is offline with cause unknown",
6+
"description": "A recipe which has been tagged as critical within Workato is offline with cause unknown.",
7+
"definition": {
8+
"id": 174536177,
9+
"name": "Critical Workato Recipe is {{#is_alert}}offline{{/is_alert}} {{#is_alert_recovery}}online{{/is_alert_recovery}}",
10+
"type": "query alert",
11+
"query": "avg(last_5m):avg:workato.recipes.failure{workato_tags:*critical*, !stop_cause:*} by {name} > 0",
12+
"message": "{{#is_alert}}The recipe {{name}} is offline, possibly due to manual stopping of recipe{{/is_alert}}\n{{#is_alert_recovery}}The recipe {{name}} is online{{/is_alert_recovery}}\n@email@example.com",
13+
"tags": [
14+
"source:workato"
15+
],
16+
"options": {
17+
"thresholds": {
18+
"critical": 0
19+
},
20+
"notify_audit": false,
21+
"on_missing_data": "resolve",
22+
"include_tags": false,
23+
"new_group_delay": 0
24+
},
25+
"priority": null
26+
},
27+
"tags": [
28+
"integration:workato"
29+
]
30+
}
7.55 KB
Loading

workato/manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
},
5555
"monitors": {
5656
"Critical recipe is offline" : "assets/monitors/critical_recipe_offline.json",
57+
"Critical recipe is offline with cause unknown" : "assets/monitors/critical_recipe_offline_cause_unknown.json",
5758
"Connection with active recipes is down" : "assets/monitors/connection_with_active_recipes.json",
5859
"Connection is lost" : "assets/monitors/connection_lost.json",
5960
"Connection auth failure" : "assets/monitors/connection_auth_failure.json",

0 commit comments

Comments
 (0)