Monitor the Logs of a Worker¶
This section involves the steps to observe the logs of the Worker on different endpoints such as DataOS CLI, Metis UI, and Operations App.
DataOS CLI¶
To monitor the logs of a Worker using DataOS CLI, follow the steps below:
-
On DataOS CLI, execute the following command by replacing the placeholders with the actual values.
Example Usage:
dataos-ctl log -t worker -w public -n textile-insights-worker INFO[0000] π log(public)... INFO[0001] π log(public)...complete NODE NAME β CONTAINER NAME β ERROR βββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββΌββββββββ textile-insights-worker-gqjk-ss-0 β textile-insights-worker β -------------------LOGS------------------- π Lens2 (0.35.60-20) => DataOS:dataos-training.dataos.app DEBUG: Configured time-zones: [ "America/Toronto", "America/Vancouver", "UTC" ] DEBUG: source: { "type": "flash", "dialect": "duckdb", "connection": "flash", "meta": { "userId": "abhishekgupta", "host": "textile-flash.public.svc.cluster.local", "port": 5433 } } DEBUG: π§βπ€βπ§ /etc/dataos/work/dp-automation/demo_1/textile-analytics/data-product/consumer-aligned/build/semantic-model-view/model/user_groups.yml => [ { "name": "default", "description": "Administrators with full access to textile analytics data product", "includes": "*", "api_scopes": [ "meta", "data", "graphql", "jobs", "source" ], "allow_private_members_access": false } ]
Metis UI¶
To monitor the logs of a Worker on the Metis Catalog UI, follow the steps below:
-
Open the Metis Catalog.
Open the Metis Catalog -
Search for the Worker by name.
Search the Worker in Metis -
Click on the Worker that needs to be monitored and navigate to the βRuntimeβ section.
Worker runtime in Metis -
Click on any pod name for which you want to monitor the logs, and navigate to the βPod Logsβ section.
Pod Logs in Metis
Operations App¶
To monitor the logs of a Worker on the Operations App, follow the steps below:
-
Open the Operations app.
Open the Operations app -
Navigate to User Space β Resources β Worker and search for the Worker by name.
Operations > Resources > Worker -
Click on the Worker that needs to be monitored and navigate to the βResource Runtimeβ section.
Worker resource runtime in Operations -
Click on any runtime node for which you want to monitor the logs, and navigate to the βRuntime Node Logsβ section. Here, users can monitor the init container and main container logs.
Runtime Node Logs in Operations