Persisting metrics metrics in tasks
You can persist metrics into as JSON in a special file
/tmp/sys-metrics.json. The JSON syntax is as an array as follows:
Here's an example in Python:
Once the Workflow task completes, you can view these metrics under Artifacts in the task info panel:
Passing metrics between tasks
Onepanel automatically outputs a
sys-metrics artifact from a completed task, which you can access in a subsequent task as follows:
Persisting metrics in Workflows
You can use Onepanel's Python SDK to persist final metrics for a Workflow. These metrics are displayed in Workflow listing and detail pages and can also be edited using the web UI.
The Python SDK snippet looks like this:
Alternatively, you can simply use the Metrics Writer Task in your Workflow Template.