The user or the service account to be used must have the
Author, the Viewer and the
Executor permissions for the workspace to which the task to
be monitored belongs.
You must know the ID of this workspace. Get this ID either via an API request or
through Talend Management Console:
API: use GET at the
https://api.<your_environment>.cloud.talend.com/orchestration/workspaces.
Talend Management Console: the ID of the workspace appears in the URL of the Edit
workspace page.
You must know the ID of the task you need to monitor.
In Talend Management Console, this ID is displayed on the dedicated page of the task to be monitored. For example:
Or you can obtain task IDs via the following API request:
It
is implemented in Talend API Tester for
demonstration purposes.
Procedure
Open Talend API Tester in
your browser and select GET from the
Method list.
In the field next to the Method drop-down list, enter the
endpoint to be used:
Example
In this example, the status, lastDays
and workspaceId parameters are used to retrieve all the
failed runs on a previous day of a specific task in the given workspace.
Issue this API request to get a list of the failed runs.
Use each of these run IDs to issue the following API request to their observability
metrics:
Analyze the response to identify the cause of each failure. For example, if you see
a component does not have the
component_execution_duration_milliseconds field, this component
could have stopped responding.
The following section presents more examples about how to use this metrics.
Results
Below is an example of the response of the GET request at
/monitoring/observability/executions/{runId}/component.