Elasticsearch cluster has been upgraded from version 6.3.4 to 6.6.0 and it looks like now I cannot update the watchers that have "pageduty" action configured:
- open a watcher editing in Kibana, change something in the Watch JSON and press "Save"
- nothing changes and the editing mode remains open
When checking the browser console, I can see the following error being logged every time I press "Save" button:
Error: "Attempted to create unknown action type pagerduty."
createAction https://kibana.server.com/bundles/kibana.bundle.js:2
createActionsForWatch https://kibana.server.com/bundles/kibana.bundle.js:2
createActionsForWatch https://kibana.server.com/bundles/kibana.bundle.js:2
onWatchSave https://kibana.server.com/bundles/kibana.bundle.js:2
fn https://kibana.server.com/dlls/vendors.bundle.dll.js line 434 > Function:4
callback https://kibana.server.com/dlls/vendors.bundle.dll.js:434
eval https://kibana.server.com/dlls/vendors.bundle.dll.js:434
apply https://kibana.server.com/dlls/vendors.bundle.dll.js:434
ngEventHandler https://kibana.server.com/dlls/vendors.bundle.dll.js:434
dispatch https://kibana.server.com/dlls/vendors.bundle.dll.js:149
handle https://kibana.server.com/dlls/vendors.bundle.dll.js:149
Watcher's action is specified like that:
...
"actions": {
"notify-slack": {
"throttle_period_in_millis": 900000,
"slack": {...}
},
"notify-pagerduty": {
"throttle_period_in_millis": 1800000,
"pagerduty": {
"description": "During last 10 mins encountered {{ctx.payload.hits.total}} errors in XXX",
"client": "Kibana",
"client_url": "https://kibana.server.com/goto/4ca19da8257d016047a7aea66b08f5a8",
"attach_payload": false,
"account": "api_service",
"contexts": [
{
"type": "link",
"href": "https://kibana.server.com/goto/4ca19da8257d016047a7aea66b08f5a8",
"text": "View the incident in Kibana"
}
]
}
}
}
}
When I am simulating the watch, it gives the status "OK", but the pagerduty action is missing, even if I force-execute it.
The same issue is observed when I am trying to create a new watcher by copy-pasting the JSON configuration there. However, the saving does work if I use the example template pre-filled into the editor when creating a new watcher.
Any idea what might be wrong?