View "Monitor" function logs
2024-09-05
This document primarily introduces the function logs generated by the Guance monitor tasks.
1. Introduction
Like other functions executed in DataFlux Func, after configuring the function logs to be reported to Guance, the logs of the monitor tasks can also be conveniently queried on the Guance platform.
For information on how to configure function log reporting to Guance and explanations of the reported fields, please refer to Manual / Deployment and Maintenance / Reporting Self-Observation Data
2. Basic Queries
Key fields:
Field | Type | Description |
---|---|---|
source |
str | Fixed as DFF_task_record_func |
workspace_uuid |
str | The UUID of the Guance workspace to which it belongs Format: wksp_xxxxx |
df_monitor_checker_id |
str | Monitor ID Format: rul_xxxxx |
exception_type |
str | Error type Example: KodoAPI call error "KodoAPIError" |
exception |
str | Specific error Example: KodoAPIError('Status Code: 400, ... <略>') |
event_count_total |
int | The total number of events generated by this task |
In the Guance "Log Explorer," fill in the following filtering conditions to filter out all monitor task logs for a specific workspace:
Text Only | |
---|---|
1 |
|
If you need to view the task logs for a specific monitor, simply filter using df_monitor_checker_id
, like this:
Text Only | |
---|---|
1 |
|
If you only want to view error logs, add a status
filter condition, like this:
Text Only | |
---|---|
1 |
|
Monitor logs are relatively complex
Monitors are more complex due to their inherent complexity.
For interpretation, please refer to Interpreting "Monitor" Logs
3. Common Query Conditions
Below are common query conditions. Please copy the query conditions into the filter bar of the Guance "Log Explorer" to perform searches.
All monitor task logs:
Text Only | |
---|---|
1 |
|
Failed monitor task logs:
Text Only | |
---|---|
1 |
|
All monitor task logs for a specific workspace:
Text Only | |
---|---|
1 |
|
Failed monitor task logs for a specific workspace:
Text Only | |
---|---|
1 |
|
Task logs for a specific monitor:
Text Only | |
---|---|
1 |
|
Failed task logs for a specific monitor:
Text Only | |
---|---|
1 |
|